Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Commit

Permalink
test(render-files): cover with tests render-files
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Apr 24, 2016
1 parent 2b6b1db commit adcd4ac
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lib/render-files.spec.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
'use strict'
require('./render-files')
const describe = require('mocha').describe
const it = require('mocha').it
const renderFiles = require('./render-files')
const path = require('path')

describe('render-files', () => {
it('should render files by pattern', done => {
renderFiles({
pattern: path.join(__dirname, '/test-cli/*.md'),
processor: {
process: () => Promise.resolve(),
},
afterEachRender: () => {},
ignorePattern: 'ignore_this_path',
})
.then(() => done())
.catch(done)
})
})

0 comments on commit adcd4ac

Please sign in to comment.