(html, reference, done)
| 6 | const text = 'text' |
| 7 | |
| 8 | function test (html, reference, done) { |
| 9 | posthtml() |
| 10 | .process(html) |
| 11 | .then(result => { |
| 12 | expect(reference).to.eql(result.html) |
| 13 | done() |
| 14 | }) |
| 15 | .catch(error => done(error)) |
| 16 | } |
| 17 | |
| 18 | describe('Parse text', () => { |
| 19 | it('Text equal', done => { |