UNPKG

521 BJavaScriptView Raw
1'use strict'
2const describe = require('mocha').describe
3const it = require('mocha').it
4const processFiles = require('./process-files')
5const path = require('path')
6
7describe('render-files', () => {
8 it('should render files by pattern', done => {
9 processFiles({
10 pattern: path.join(__dirname, '/test-cli/*.md'),
11 processor: {
12 process: () => Promise.resolve(),
13 },
14 afterEachRender: () => {},
15 ignorePattern: 'ignore_this_path',
16 })
17 .then(() => done())
18 .catch(done)
19 })
20})