Permalink
Browse files

Bump up package.json dependency versions, fix test

  • Loading branch information...
1 parent 41f33b1 commit f8d063a8b2d3dd0b03aed4477d6e7035bb5a7108 @mixu committed Nov 16, 2015
Showing with 19 additions and 12 deletions.
  1. +11 −11 package.json
  2. +8 −1 test/list-tasks/infer-packages.test.js
View
@@ -7,7 +7,7 @@
"email": "mikito.takada@gmail.com",
"url": "http://blog.mixu.net/"
},
- "license": "BSD",
+ "license": "BSD-3-Clause",
"bin": {
"gluejs": "./bin/gluejs"
},
@@ -26,21 +26,21 @@
},
"main": "index.js",
"dependencies": {
- "readable-stream": "1.1.9",
+ "amd-resolve": "~0.1.1",
+ "amdetective": "0.0.1",
+ "browser-resolve": "~1.2.2",
+ "bytes": "~2.2.0",
+ "detective": "~4.3.1",
+ "minilog": "~2.1.0",
"minimatch": "~0.2.12",
"minitask": "~0.2.0",
- "optimist": "~0.5.2",
- "bytes": "~0.2.1",
- "minilog": "~2.0.3",
+ "optimist": "~0.6.1",
"progress": "~1.1.2",
- "browser-resolve": "~1.2.2",
- "detective": "~3.4.1",
- "amd-resolve": "~0.1.1",
- "amdetective": "0.0.1",
+ "readable-stream": "1.1.9",
"resolve": "~0.6.1"
},
"devDependencies": {
- "mocha": "1.x",
- "uglify-js": "~2.4.8"
+ "mocha": "~2.3.4",
+ "uglify-js": "~2.6.1"
}
}
@@ -27,7 +27,12 @@ var cases = {
'/fixtures/index.js',
'/fixtures/node_modules/foo/index.js',
'/fixtures/node_modules/foo/lib/sub.js'
- ]
+ ],
+ fakeFS: {
+ existsSync: function(name) {
+ return !!cases['has-node-module-folder'].files[name];
+ },
+ }
},
'has-node-module-folder-mainfile-via-package-json': {
@@ -198,6 +203,8 @@ exports['infer-packages'] = {
'can infer two packages from module-folder': function() {
var list = cases['has-node-module-folder'];
+ // set up fakeFS
+ this.fakeFS = list.fakeFS;
infer(list);
// console.log(util.inspect(list, null, 10, true));
assert.equal(list.packages.length, 2);

0 comments on commit f8d063a

Please sign in to comment.