mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-24 23:18:35 +02:00
almost can do tests
This commit is contained in:
parent
565142048c
commit
ddf399e099
10 changed files with 288 additions and 163 deletions
|
@ -1,3 +1,5 @@
|
|||
var _ = require('underscore');
|
||||
|
||||
// static class...
|
||||
function TreeCompare() {
|
||||
|
||||
|
@ -80,7 +82,10 @@ TreeCompare.prototype.compareTrees = function(treeA, treeB) {
|
|||
// like createTime, message, author
|
||||
this.stripTreeFields([treeA, treeB]);
|
||||
|
||||
console.log('comparing tree A', treeA, 'to', treeB);
|
||||
|
||||
return _.isEqual(treeA, treeB);
|
||||
};
|
||||
|
||||
exports.TreeCompare = TreeCompare;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue