var matchesGlob = require('../../../../lib/file/matches_glob');

exports['Matches glob pattern'] = function (test) {
    test.ok(matchesGlob('a_foo.js', '*_foo.js'));
    test.ok(matchesGlob('a_foo.js', ['*_foo.js']));
    test.ok(matchesGlob('a_foo.js', ['*.txt', '*_foo.js']));
    test.strictEqual(matchesGlob('a_foo.js', 'bar.js'), false);
    test.strictEqual(matchesGlob('a_foo.js', ''), false);
    test.done();
};