PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

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