This commit is contained in:
Peter Cottle 2013-10-25 18:41:06 -07:00
parent 005e6047cc
commit bc20fc163b
3 changed files with 15 additions and 3 deletions

View file

@ -48,11 +48,15 @@ var expectLevelAsync = function(headless, levelBlob) {
}, 'trees should be equal', TIME);
};
var expectTreeAsync = function(command, expectedJSON) {
var expectTreeAsync = function(command, expectedJSON, startJSON) {
var headless = new HeadlessGit();
var start = Date.now();
var haveReported = false;
if (startJSON) {
headless.gitEngine.loadTreeFromString(startJSON);
}
runs(function() {
headless.sendCommand(command);
});