@@ -15,9 +15,9 @@ describe("wrapReportHandler", function () {
1515 textlint . setupRules ( {
1616 "rule-key" : function ( context ) {
1717 const { RuleError } = context ;
18- return wrapReportHandler ( {
18+ return wrapReportHandler ( context , {
1919 ignoreNodeTypes : Object . keys ( ASTNodeTypes ) . concat ( "my-type" )
20- } , context , report => {
20+ } , report => {
2121 return {
2222 ...( Object . keys ( ASTNodeTypes ) . reduce ( ( object , key ) => {
2323 object [ key ] = ( node : AnyTxtNode ) => {
6565 let isCalled = false ;
6666 textlint . setupRules ( {
6767 "rule-key" : function ( context : any ) {
68- return wrapReportHandler ( {
68+ return wrapReportHandler ( context , {
6969 ignoreNodeTypes : [ context . Syntax . BlockQuote , context . Syntax . Code ]
70- } , context , _report => {
70+ } , _report => {
7171 return {
7272 [ context . Syntax . Paragraph ] ( ) {
7373 isCalled = true
126126 textlint . setupRules ( {
127127 "rule-key" : function ( context ) {
128128 const { Syntax, getSource } = context ;
129- return wrapReportHandler ( {
129+ return wrapReportHandler ( context , {
130130 ignoreNodeTypes : [ context . Syntax . Code ]
131- } , context , report => {
131+ } , report => {
132132 return {
133133 [ Syntax . Paragraph ] ( node ) {
134134 const text = getSource ( node ) ;
161161 textlint . setupRules ( {
162162 "rule-key" : function ( context ) {
163163 const { Syntax, RuleError } = context ;
164- return wrapReportHandler ( {
164+ return wrapReportHandler ( context , {
165165 ignoreNodeTypes : [ context . Syntax . Code ]
166- } , context , report => {
166+ } , report => {
167167 return {
168168 [ Syntax . Paragraph ] ( node ) {
169169 const text = context . getSource ( node ) ;
0 commit comments