(html, done)
| 6 | const input = '<div class="button"><div class="button__text">Text</div></div>' |
| 7 | |
| 8 | function test (html, done) { |
| 9 | posthtml() |
| 10 | .process(html) |
| 11 | .then(result => { |
| 12 | expect(input).to.eql(result.html) |
| 13 | done() |
| 14 | }) |
| 15 | .catch(error => done(error)) |
| 16 | } |
| 17 | |
| 18 | describe('Simple text', () => { |
| 19 | it('html eqval', done => { |