File: question-mark-is-glob.patch

package info (click to toggle)
node-glob-base 0.3.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 176 kB
  • sloc: makefile: 4; sh: 2
file content (35 lines) | stat: -rw-r--r-- 2,455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: the glob behavior of ? changed with node-is-glob 4.0.0, so don't test
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884543
Index: node-glob-base/test.js
===================================================================
--- node-glob-base.orig/test.js
+++ node-glob-base/test.js
@@ -125,28 +125,6 @@ describe('glob-base:', function () {
     globBase('[ab][ab]').should.eql({ base: '.', isGlob: true, glob: '[ab][ab]' });
     globBase('foo/[a-b].min.js').should.eql({ base: 'foo', isGlob: true, glob: '[a-b].min.js' });
   });
-  it('qmarks:', function () {
-    globBase('?').should.eql({ base: '.', isGlob: true, glob: '?' });
-    globBase('?/?').should.eql({ base: '.', isGlob: true, glob: '?/?' });
-    globBase('??').should.eql({ base: '.', isGlob: true, glob: '??' });
-    globBase('???').should.eql({ base: '.', isGlob: true, glob: '???' });
-    globBase('?a').should.eql({ base: '.', isGlob: true, glob: '?a' });
-    globBase('?b').should.eql({ base: '.', isGlob: true, glob: '?b' });
-    globBase('a?b').should.eql({ base: '.', isGlob: true, glob: 'a?b' });
-    globBase('a/?/c.js').should.eql({ base: 'a', isGlob: true, glob: '?/c.js' });
-    globBase('a/?/c.md').should.eql({ base: 'a', isGlob: true, glob: '?/c.md' });
-    globBase('a/?/c/?/*/f.js').should.eql({ base: 'a', isGlob: true, glob: '?/c/?/*/f.js' });
-    globBase('a/?/c/?/*/f.md').should.eql({ base: 'a', isGlob: true, glob: '?/c/?/*/f.md' });
-    globBase('a/?/c/?/e.js').should.eql({ base: 'a', isGlob: true, glob: '?/c/?/e.js' });
-    globBase('a/?/c/?/e.md').should.eql({ base: 'a', isGlob: true, glob: '?/c/?/e.md' });
-    globBase('a/?/c/???/e.js').should.eql({ base: 'a', isGlob: true, glob: '?/c/???/e.js' });
-    globBase('a/?/c/???/e.md').should.eql({ base: 'a', isGlob: true, glob: '?/c/???/e.md' });
-    globBase('a/??/c.js').should.eql({ base: 'a', isGlob: true, glob: '??/c.js' });
-    globBase('a/??/c.md').should.eql({ base: 'a', isGlob: true, glob: '??/c.md' });
-    globBase('a/???/c.js').should.eql({ base: 'a', isGlob: true, glob: '???/c.js' });
-    globBase('a/???/c.md').should.eql({ base: 'a', isGlob: true, glob: '???/c.md' });
-    globBase('a/????/c.js').should.eql({ base: 'a', isGlob: true, glob: '????/c.js' });
-  });
   it('non-glob pattern:', function () {
     globBase('').should.eql({ base: '.', isGlob: false, glob: '' });
     globBase('.').should.eql({ base: '.', isGlob: false, glob: '.' });