Skip to content

Commit

Permalink
[Dev Deps] update tape
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 13, 2022
1 parent e1ac253 commit afd6a95
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 36 deletions.
74 changes: 45 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,50 @@
{
"name" : "traverse",
"version" : "0.6.6",
"description" : "traverse and transform objects by visiting every node on a recursive walk",
"main" : "index.js",
"directories" : {
"example" : "example",
"test" : "test"
"name": "traverse",
"version": "0.6.6",
"description": "traverse and transform objects by visiting every node on a recursive walk",
"main": "index.js",
"directories": {
"example": "example",
"test": "test"
},
"devDependencies" : {
"tape" : "~1.0.4"
"devDependencies": {
"tape": "^5.6.1"
},
"scripts" : {
"test" : "tape test/*.js"
"scripts": {
"tests-only": "tape 'test/**/*.js'",
"test": "npm run tests-only"
},
"testling" : {
"files" : "test/*.js",
"browsers" : {
"iexplore" : [ "6.0", "7.0", "8.0", "9.0" ],
"chrome" : [ "10.0", "20.0" ],
"firefox" : [ "10.0", "15.0" ],
"safari" : [ "5.1" ],
"opera" : [ "12.0" ]
"testling": {
"files": "test/*.js",
"browsers": {
"iexplore": [
"6.0",
"7.0",
"8.0",
"9.0"
],
"chrome": [
"10.0",
"20.0"
],
"firefox": [
"10.0",
"15.0"
],
"safari": [
"5.1"
],
"opera": [
"12.0"
]
}
},
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/js-traverse.git"
"repository": {
"type": "git",
"url": "git://github.com/substack/js-traverse.git"
},
"homepage" : "https://github.com/substack/js-traverse",
"keywords" : [
"homepage": "https://github.com/substack/js-traverse",
"keywords": [
"traverse",
"walk",
"recursive",
Expand All @@ -37,10 +53,10 @@
"deep",
"clone"
],
"author" : {
"name" : "James Halliday",
"email" : "[email protected]",
"url" : "http://substack.net"
"author": {
"name": "James Halliday",
"email": "[email protected]",
"url": "http://substack.net"
},
"license" : "MIT"
"license": "MIT"
}
14 changes: 7 additions & 7 deletions test/circular.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ test('deepCirc', function (t) {
var times = 0;
traverse(obj).forEach(function (x) {
if (this.circular) {
t.same(this.circular.path, []);
t.same(this.path, [ 'y', 2 ]);
t.deepEqual(this.circular.path, []);
t.deepEqual(this.path, [ 'y', '2' ]);
}
});
});
Expand All @@ -44,13 +44,13 @@ test('doubleCirc', function (t) {
}
});

t.same(circs[0].self.path, [ 'x', 3, 2 ]);
t.same(circs[0].circ.path, []);
t.deepEqual(circs[0].self.path, [ 'x', '3', '2' ]);
t.deepEqual(circs[0].circ.path, []);

t.same(circs[1].self.path, [ 'y', 2 ]);
t.same(circs[1].circ.path, []);
t.deepEqual(circs[1].self.path, [ 'y', '2' ]);
t.deepEqual(circs[1].circ.path, []);

t.same(circs.length, 2);
t.deepEqual(circs.length, 2);
t.end();
});

Expand Down

0 comments on commit afd6a95

Please sign in to comment.