(html, done)
| 6 | const input = '<div class="button"><rect /><div class="button__text">Text</div></div>' |
| 7 | |
| 8 | function test (html, done) { |
| 9 | const options = { singleTags: ['rect'], closingSingleTag: 'slash' } |
| 10 | posthtml() |
| 11 | .process(html, options) |
| 12 | .then(result => { |
| 13 | expect(input).to.eql(result.html) |
| 14 | done() |
| 15 | }) |
| 16 | .catch(error => done(error)) |
| 17 | } |
| 18 | |
| 19 | describe('Set options', () => { |
| 20 | it('html equal', done => { |
no test coverage detected
searching dependent graphs…