/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    ignoreFilter = require('../../../../lib/file/ignore_filter.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    done();
};


exports['Ignore filter.'] = function (test) {
    var files = [
        'foo/bar',
        'baz/quz'
    ].filter(ignoreFilter('baz/*'));
    test.equal(files.length, 1);
    test.equal(files[0], 'foo/bar');


    test.ok(ignoreFilter(null)());

    test.done();
};