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

Function test

test/text.js:8–16  ·  view source on GitHub ↗
(html, reference, done)

Source from the content-addressed store, hash-verified

6const text = 'text'
7
8function 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
18describe('Parse text', () => {
19 it('Text equal', done => {

Callers 1

text.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…