Skip to content

Commit

Permalink
Add globstar test assertions
Browse files Browse the repository at this point in the history
(some failing)
  • Loading branch information
es128 committed Mar 26, 2015
1 parent 0275538 commit 2409bae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/isMatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe('.isMatch()', function () {
mm.isMatch('a/b/z.js', '**/*.js').should.be.true;
mm.isMatch('a/z.js', '**/*.js').should.be.true;
mm.isMatch('z.js', '**/*.js').should.be.true;
mm.isMatch('z.js', '**/z*').should.be.true;

mm.isMatch('a/b/c/z.js', '*.js').should.be.false;
mm.isMatch('a/b/z.js', '*.js').should.be.false;
Expand All @@ -86,6 +87,10 @@ describe('.isMatch()', function () {

mm.isMatch('a/z.js', 'a/b/**/*.js').should.be.false;
mm.isMatch('z.js', 'a/b/**/*.js').should.be.false;

mm.isMatch('z.js', '**/z*.js').should.be.true;
mm.isMatch('a/b-c/z.js', 'a/b-*/**/z.js').should.be.true;
mm.isMatch('a/b-c/d/e/z.js', 'a/b-*/**/z.js').should.be.true;
});

/**
Expand Down

1 comment on commit 2409bae

@tunnckoCore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no logic to be true!

@jonschlinkert it was great you follow the spec, now you change things..

Please sign in to comment.