mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-23 02:58:26 +02:00
temporary UNSTABLE since codemod went nuts
This commit is contained in:
parent
2257668f9d
commit
f048f99e7f
14 changed files with 32 additions and 39 deletions
src/js/__tests__
|
@ -1,5 +1,4 @@
|
|||
var TreeCompare = require('../graph/treeCompare');
|
||||
var _ = require('underscore');
|
||||
|
||||
var loadTree = function(treeString) {
|
||||
return TreeCompare.convertTreeSafe(treeString);
|
||||
|
@ -13,7 +12,8 @@ var testMethod = function(compareMethod, goalTreeString, cases, options) {
|
|||
cases[goalTreeString] = true;
|
||||
}
|
||||
|
||||
_.each(cases, function(value, actualTree) {
|
||||
Object.keys(cases).forEach(function(actualTree) {
|
||||
var value = cases[actualTree];
|
||||
var isEqual = TreeCompare.dispatch(compareMethod, goalTreeString, actualTree);
|
||||
if (isEqual !== value) {
|
||||
console.log('this goal tree', loadTree(goalTreeString));
|
||||
|
@ -21,7 +21,7 @@ var testMethod = function(compareMethod, goalTreeString, cases, options) {
|
|||
console.log('for this value', value);
|
||||
}
|
||||
expect(isEqual).toBe(value);
|
||||
});
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
describe('Tree Compare', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue