MCPcopy
hub / github.com/pcottle/learnGitBranching / expectLevelAsync

Function expectLevelAsync

__tests__/base.js:26–38  ·  view source on GitHub ↗
(headless, levelBlob)

Source from the content-addressed store, hash-verified

24};
25
26var expectLevelAsync = function(headless, levelBlob) {
27 var command = levelBlob.solutionCommand;
28 if (command.indexOf('git rebase -i') !== -1) {
29 // don't do interactive rebase levels
30 return;
31 }
32
33 return headless.sendCommand(command).then(function() {
34 expect(compareLevelTree(headless, levelBlob)).toBeTruthy(
35 'Level "' + levelBlob['name']['en_US'] + '" should get solved'
36 );
37 });
38};
39
40var expectTreeAsync = function(command, expectedJSON, startJSON) {
41 var headless = new HeadlessGit();

Callers 1

expectLevelSolvedFunction · 0.85

Calls 2

compareLevelTreeFunction · 0.85
thenMethod · 0.80

Tested by

no test coverage detected