MCPcopy Index your code
hub / github.com/posthtml/posthtml / test

Function test

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

Source from the content-addressed store, hash-verified

6const input = '<div class="button"><div class="button__text">Text</div></div>'
7
8function 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
18describe('Simple text', () => {
19 it('html eqval', done => {

Callers 1

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