1 | 'use strict'
|
2 | const describe = require('mocha').describe
|
3 | const it = require('mocha').it
|
4 | const processFiles = require('./process-files')
|
5 | const path = require('path')
|
6 |
|
7 | describe('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 | })
|