Function
test
(nodes, reference, fn, options, done)
Source from the content-addressed store, hash-verified
| 6 | const { walk, match } = require('../lib/api') |
| 7 | |
| 8 | function test (nodes, reference, fn, options, done) { |
| 9 | expect(posthtml([].concat(fn)) |
| 10 | .process(nodes, options) |
| 11 | .then(({ html }) => { |
| 12 | expect(reference).to.eql(html) |
| 13 | done() |
| 14 | }) |
| 15 | .catch(done)) |
| 16 | } |
| 17 | |
| 18 | describe('API', () => { |
| 19 | it('chaining', done => { |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…