Skip to content

Commit

Permalink
ci-test-3
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Mar 26, 2022
1 parent 1637efc commit a346acf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ describe('glob-parent', function () {
it('should treat escaped brackets as normal chars', function (done) {
if (isWin32) {
expect(gp('aaa\\}')).toEqual('aaa');
expect(gp('\\{aaa/bbb\\}')).toEqual('\\{aaa/bbb');
expect(gp('\\{\\{aaa/bbb\\}')).toEqual('\\');
expect(gp('\\{aaa/bbb\\}')).toEqual('{aaa');
expect(gp('\\{\\{aaa/bbb\\}')).toEqual('{{aaa');
expect(gp('{\\{aaa/bbb}')).toEqual('.');
expect(gp('ccc/{\\{aaa/bbb}')).toEqual('ccc/{');
expect(gp('ccc\\/\\{\\{aaa/bbb}')).toEqual('ccc\\/\\{');
expect(gp('ccc/{\\{aaa/bbb}')).toEqual('ccc');
expect(gp('ccc\\/\\{\\{aaa/bbb}')).toEqual('ccc\\/{{aaa');

var opts = { flipBackslashes: true };
expect(gp('aaa\\}', opts)).toEqual('.');
Expand Down

0 comments on commit a346acf

Please sign in to comment.