(command, expectedJSON, startJSON)
| 38 | }; |
| 39 | |
| 40 | var expectTreeAsync = function(command, expectedJSON, startJSON) { |
| 41 | var headless = new HeadlessGit(); |
| 42 | |
| 43 | if (startJSON) { |
| 44 | headless.gitEngine.loadTreeFromString(startJSON); |
| 45 | } |
| 46 | |
| 47 | return headless.sendCommand(command).then(function() { |
| 48 | expect(compareAnswer(headless, expectedJSON)).toBeTruthy(); |
| 49 | }); |
| 50 | }; |
| 51 | |
| 52 | var expectLevelSolved = function(levelBlob) { |
| 53 | var headless = new HeadlessGit(); |
no test coverage detected