MCPcopy Index your code
hub / github.com/htmlhint/HTMLHint / getAllEvents

Function getAllEvents

test/htmlparser.spec.js:35–42  ·  view source on GitHub ↗
(parser, arrEvents, callback)

Source from the content-addressed store, hash-verified

33})
34
35function getAllEvents(parser, arrEvents, callback) {
36 parser.addListener('all', (e) => {
37 arrEvents.push(e)
38 if (e.type === 'end') {
39 callback()
40 }
41 })
42}
43
44describe('HTMLParser: Base parse', () => {
45 it('should parse html code1', (done) => {

Callers 1

htmlparser.spec.jsFile · 0.85

Calls 1

addListenerMethod · 0.80

Tested by

no test coverage detected