Projects
openEuler:Mainline
nodejs-traverse
_service:tar_scm:nodejs-traverse-tape.patch
Sign Up
Log In
Username
Password
Sorry, you are not authorized to perform this action.
×
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:nodejs-traverse-tape.patch of Package nodejs-traverse
commit a469eda0f464455e72447106c15519654a053367 Author: Tom Hughes <tom@compton.nu> 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);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2