1 | 'use strict'
|
2 | const describe = require('mocha').describe
|
3 | const it = require('mocha').it
|
4 | const expect = require('chai').expect
|
5 | const path = require('path')
|
6 | const initCustomPlugins = require('./init-custom-plugins')
|
7 |
|
8 | describe('initCustomPlugins', () => {
|
9 | it('should use plugins registered via mosfile', done => {
|
10 | const mos = {
|
11 | useRemarkPlugin (plugin) {
|
12 | expect(plugin).to.eq('foo')
|
13 | done()
|
14 | },
|
15 | }
|
16 | initCustomPlugins(mos, {
|
17 | cwd: path.resolve(__dirname, 'test-mosfile'),
|
18 | })
|
19 | })
|
20 | })
|