diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
commit | c1d53ec11fbe085932df911bda5686b7bf671f53 (patch) | |
tree | 97ae6db641eb79ec9b061af136a0b2e3c549db55 /test/ignore.js | |
parent | 36b49c66c6b75515bc84dd678fd52121a313e8d2 (diff) | |
download | gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.zip gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.gz gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.bz2 |
Switch parsers to a model
Diffstat (limited to 'test/ignore.js')
-rw-r--r-- | test/ignore.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/test/ignore.js b/test/ignore.js deleted file mode 100644 index e8d833c..0000000 --- a/test/ignore.js +++ /dev/null @@ -1,33 +0,0 @@ -var mock = require('./mock'); -var WebsiteOutput = require('../lib/output/website'); - -describe('Ignore', function() { - var output; - - before(function() { - return mock.outputDefaultBook(WebsiteOutput, { - '.ignore': 'test-1.js', - '.gitignore': 'test-2.js\ntest-3.js', - '.bookignore': '!test-3.js', - 'test-1.js': '1', - 'test-2.js': '2', - 'test-3.js': '3' - }) - .then(function(_output) { - output = _output; - }); - }); - - it('should load rules from .ignore', function() { - output.should.not.have.file('test-1.js'); - }); - - it('should load rules from .gitignore', function() { - output.should.not.have.file('test-2.js'); - }); - - it('should load rules from .bookignore', function() { - output.should.have.file('test-3.js'); - }); -}); - |