git diff
diff --git a/package.json b/package.json
index 8cb2dbf..fe4d7cc 100644
--- a/package.json
+++ b/package.json
@@ -29,8 +29,8 @@
"test": "mocha"
},
"dependencies": {
- "glob-parent": "^2.0.0",
- "is-glob": "^2.0.0"
+ "glob-parent": "^3.0.0",
+ "is-glob": "^3.0.0"
},
"devDependencies": {
"mocha": "*",
5/10 tests fail, see error below. In debian, we like to keep the latest versions of any library and we already have glob-parent and is-glob at version 3.0.
$ npm test
> [email protected] test /home/pravi/forge/debian/git/pkg-javascript/node-glob-base
> mocha
glob-base:
1) typical globs:
✓ file extensions:
2) negation pattern:
✓ extglobs:
3) braces: no base:
4) braces in filename:
5) braces in dirname:
✓ regex character classes:
✓ qmarks:
✓ non-glob pattern:
5 passing (46ms)
5 failing
1) glob-base: typical globs::
AssertionError: expected { base: './{a/b/{c,', glob: 'foo.js}/e.f.g}', isGlob: true } to equal { base: '.', glob: '{a/b/{c,/foo.js}/e.f.g}', isGlob: true } (at base, A has './{a/b/{c,' and B has '.')
+ expected - actual
{
- "base": "./{a/b/{c,"
- "glob": "foo.js}/e.f.g}"
+ "base": "."
+ "glob": "{a/b/{c,/foo.js}/e.f.g}"
"isGlob": true
}
at Assertion.fail (node_modules/should/lib/assertion.js:196:17)
at Assertion.prop.(anonymous function) [as eql] (node_modules/should/lib/assertion.js:81:17)
at Context.<anonymous> (test.js:38:50)
2) glob-base: negation pattern::
AssertionError: expected { base: 'a/b/c', glob: '!foo', isGlob: false } to equal { base: 'a/b/c', glob: '!foo', isGlob: true } (at isGlob, A has false and B has true)
+ expected - actual
{
"base": "a/b/c"
"glob": "!foo"
- "isGlob": false
+ "isGlob": true
}
at Assertion.fail (node_modules/should/lib/assertion.js:196:17)
at Assertion.prop.(anonymous function) [as eql] (node_modules/should/lib/assertion.js:81:17)
at Context.<anonymous> (test.js:76:35)
3) glob-base: braces: no base::
AssertionError: expected { base: '/a/b/{c,', glob: 'foo.js}/e.f.g/', isGlob: true } to equal { base: '/a/b', glob: '{c,/foo.js}/e.f.g/', isGlob: true } (at base, A has '/a/b/{c,' and B has '/a/b')
+ expected - actual
{
- "base": "/a/b/{c,"
- "glob": "foo.js}/e.f.g/"
+ "base": "/a/b"
+ "glob": "{c,/foo.js}/e.f.g/"
"isGlob": true
}
at Assertion.fail (node_modules/should/lib/assertion.js:196:17)
at Assertion.prop.(anonymous function) [as eql] (node_modules/should/lib/assertion.js:81:17)
at Context.<anonymous> (test.js:87:48)
4) glob-base: braces in filename::
AssertionError: expected { base: 'a/b/.{c,', glob: '.gitignore}', isGlob: true } to equal { base: 'a/b', glob: '.{c,/.gitignore}', isGlob: true } (at base, A has 'a/b/.{c,' and B has 'a/b')
+ expected - actual
{
- "base": "a/b/.{c,"
- "glob": ".gitignore}"
+ "base": "a/b"
+ "glob": ".{c,/.gitignore}"
"isGlob": true
}
at Assertion.fail (node_modules/should/lib/assertion.js:196:17)
at Assertion.prop.(anonymous function) [as eql] (node_modules/should/lib/assertion.js:81:17)
at Context.<anonymous> (test.js:97:45)
5) glob-base: braces in dirname::
AssertionError: expected { base: 'a/b/{c,.', glob: 'd}/e/f.g', isGlob: true } to equal { base: 'a/b', glob: '{c,./d}/e/f.g', isGlob: true } (at base, A has 'a/b/{c,.' and B has 'a/b')
+ expected - actual
{
- "base": "a/b/{c,."
- "glob": "d}/e/f.g"
+ "base": "a/b"
+ "glob": "{c,./d}/e/f.g"
"isGlob": true
}
at Assertion.fail (node_modules/should/lib/assertion.js:196:17)
at Assertion.prop.(anonymous function) [as eql] (node_modules/should/lib/assertion.js:81:17)
at Context.<anonymous> (test.js:105:42)
npm ERR! Test failed. See above for more details.
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
When running tests with latest versions of glob-parent and is-glob,
5/10 tests fail, see error below. In debian, we like to keep the latest versions of any library and we already have glob-parent and is-glob at version 3.0.