Skip to content

Commit

Permalink
Use Tape's deepEqual instead of deep-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Jul 23, 2015
1 parent 8aff09f commit 64d014c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/sanitiseTestCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var tape = require( 'tape' );

var deepDiff = require( 'deep-diff' );
var sanitiseTestCase = require( '../lib/sanitiseTestCase' );

tape( 'testCaseSanitiser', function ( test ){
Expand Down Expand Up @@ -78,10 +77,8 @@ tape( 'testCaseSanitiser', function ( test ){
}
};


// deep diff returns undefined if there are no differences
var result = deepDiff.diff(expected_testCase, sanitiseTestCase(testCase, locations));
t.equal(result, undefined, 'test case has location filled in');
var result = sanitiseTestCase(testCase, locations);
t.deepEqual(result, expected_testCase, 'test case has location filled in');
t.end();
});

Expand Down

0 comments on commit 64d014c

Please sign in to comment.