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

Function expectTreeAsync

__tests__/base.js:40–50  ·  view source on GitHub ↗
(command, expectedJSON, startJSON)

Source from the content-addressed store, hash-verified

38};
39
40var 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
52var expectLevelSolved = function(levelBlob) {
53 var headless = new HeadlessGit();

Callers 4

remote.spec.jsFile · 0.85
assertFunction · 0.85
git.spec.jsFile · 0.85

Calls 2

compareAnswerFunction · 0.85
thenMethod · 0.80

Tested by

no test coverage detected