MCPcopy
hub / github.com/posthtml/posthtml / test

Function test

test/doctype.js:13–20  ·  view source on GitHub ↗
(html, reference, done)

Source from the content-addressed store, hash-verified

11)
12
13function test (html, reference, done) {
14 posthtml().process(html)
15 .then(result => {
16 expect(reference).to.eql(result.html)
17 done()
18 })
19 .catch(error => done(error))
20}
21
22describe('Parse Doctype', () => {
23 it('doctype equal', done => {

Callers 1

doctype.jsFile · 0.70

Calls 1

processMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…