From 9ecb21b7497ed27a8956e127b82e3934581b67b2 Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Fri, 26 Jan 2018 08:17:53 +0000 Subject: [PATCH] stripLocation > stripProperties --- test/spec/unit/parser.spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/spec/unit/parser.spec.js b/test/spec/unit/parser.spec.js index a031be2..52820dd 100644 --- a/test/spec/unit/parser.spec.js +++ b/test/spec/unit/parser.spec.js @@ -163,7 +163,7 @@ describe( "PEG.js grammar parser", function () { rules: [ ruleA, ruleB ] }; - const stripLocation = ( function () { + const stripProperties = ( function () { let strip; @@ -207,6 +207,7 @@ describe( "PEG.js grammar parser", function () { grammar( node ) { delete node.location; + delete node._alwaysConsumesOnSuccess; if ( node.initializer ) { @@ -258,7 +259,7 @@ describe( "PEG.js grammar parser", function () { const result = parser.parse( utils.flag( this, "object" ), options ); - stripLocation( result ); + stripProperties( result ); this.assert( utils.eql( result, expected ), @@ -289,7 +290,7 @@ describe( "PEG.js grammar parser", function () { if ( passed ) { - stripLocation( result ); + stripProperties( result ); }