mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-16 09:34:28 +02:00
sLICKK
This commit is contained in:
parent
005e6047cc
commit
bc20fc163b
3 changed files with 15 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue