|
1 | 1 | const t = require('tap') |
2 | 2 | const mm = require('../') |
| 3 | + |
3 | 4 | t.equal(mm('/a/b', '/*/b/x/y/z', { partial: true }), true) |
4 | 5 | t.equal(mm('/a/b/c', '/*/b/x/y/z', { partial: true }), false) |
5 | 6 | t.equal(mm('/', 'x', { partial: true }), true) |
6 | 7 | const m = new mm.Minimatch('/*/b/x/y/z') |
7 | 8 | t.equal(m.match('/a/b', true), true) |
| 9 | +t.equal(mm('/b/c/d/a', '/**/a/b/c', { partial: true }), true) |
| 10 | +t.equal(mm('/b/c/d/a', '/**/a/b/c/**', { partial: true }), true) |
| 11 | + |
| 12 | +t.equal(mm('a', 'a/**', { partial: true }), true) |
| 13 | +t.equal(mm('a', '**', { partial: true }), true) |
| 14 | +t.equal(mm('b/a', 'a/**', { partial: true }), false) |
| 15 | +t.equal(mm('/b/c/d/a', '/**/a/**/b/c/**', { partial: true }), true) |
| 16 | +t.equal(mm('/b/c/d/a', '/**/a/**', { partial: true }), true) |
0 commit comments