commit a469eda0f464455e72447106c15519654a053367 Author: Tom Hughes Date: Fri Jan 1 17:31:43 2016 +0000 Update tests for newer versions of tape The t.same call now does strict equality at the lowest level. diff --git a/package.json b/package.json index ed9a287..86ed349 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test" : "test" }, "devDependencies" : { - "tape" : "~1.0.4" + "tape" : "~4.4.0" }, "scripts" : { "test" : "tape test/*.js" diff --git a/test/circular.js b/test/circular.js index f56506a..8e283ce 100644 --- a/test/circular.js +++ b/test/circular.js @@ -27,7 +27,7 @@ test('deepCirc', function (t) { traverse(obj).forEach(function (x) { if (this.circular) { t.same(this.circular.path, []); - t.same(this.path, [ 'y', 2 ]); + t.same(this.path, [ 'y', '2' ]); } }); }); @@ -44,10 +44,10 @@ test('doubleCirc', function (t) { } }); - t.same(circs[0].self.path, [ 'x', 3, 2 ]); + t.same(circs[0].self.path, [ 'x', '3', '2' ]); t.same(circs[0].circ.path, []); - t.same(circs[1].self.path, [ 'y', 2 ]); + t.same(circs[1].self.path, [ 'y', '2' ]); t.same(circs[1].circ.path, []); t.same(circs.length, 2);