/node_modules/minimatch/test/extglob-ending-with-state-char.js

https://bitbucket.org/coleman333/smartsite · JavaScript · 8 lines · 7 code · 1 blank · 0 comment · 0 complexity · e59a904d10eabad09e4511694cbb2d2d MD5 · raw file

  1. var test = require('tap').test
  2. var minimatch = require('../')
  3. test('extglob ending with statechar', function(t) {
  4. t.notOk(minimatch('ax', 'a?(b*)'))
  5. t.ok(minimatch('ax', '?(a*|b)'))
  6. t.end()
  7. })