File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var htmlparser = require ( 'htmlparser2' ) ;
3
+ var Parser = require ( 'htmlparser2/lib/Parser ' ) ;
4
4
var isObject = require ( 'isobject' ) ;
5
5
var objectAssign = require ( 'object-assign' ) ;
6
6
@@ -56,7 +56,7 @@ function postHTMLParser(html, options) {
56
56
return result ;
57
57
}
58
58
59
- var parser = new htmlparser . Parser ( {
59
+ var parser = new Parser ( {
60
60
onprocessinginstruction : parserDirective ,
61
61
oncomment : function ( data ) {
62
62
var comment = '<!--' + data + '-->' ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ describe('PostHTML-Parser test', function() {
28
28
29
29
// Replace real htmlparser2 dependency of posthtml-parser with mocked
30
30
parserWithMockedDeps . __set__ ( {
31
- htmlparser : { Parser : parserSpy }
31
+ Parser : parserSpy
32
32
} ) ;
33
33
} ) ;
34
34
You can’t perform that action at this time.
0 commit comments