Skip to content

Commit 4c3a390

Browse files
test(Glob): Add tests for #2438
Closes #2438
1 parent 60ebd44 commit 4c3a390

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/core/globSpec.ts

+7
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,12 @@ describe('Glob', function() {
6161

6262
expect(new Glob('**.person.**.*.*').matches(state)).toBe(false);
6363
expect(new Glob('**.person.**.*.item').matches(state)).toBe(false);
64+
65+
// Tests for #2438
66+
expect(new Glob('**.todo.*').matches('awesome.edit.todo.inbox')).toBe(true);
67+
expect(new Glob('*.todo.*').matches('awesome.edit.todo.inbox')).toBe(false);
68+
expect(new Glob('**.todo.*.*').matches('awesome.edit.todo.inbox')).toBe(false);
69+
expect(new Glob('**.todo.**').matches('awesome.edit.todo.inbox')).toBe(true);
70+
expect(new Glob('**.todo.**.*').matches('awesome.edit.todo.inbox')).toBe(true);
6471
});
6572
});

0 commit comments

Comments
 (0)