cucumber-expressions
Advanced tools
Comparing version 5.0.11 to 5.0.12
{ | ||
"name": "cucumber-expressions", | ||
"version": "5.0.11", | ||
"version": "5.0.12", | ||
"description": "Cucumber Expressions - a simpler alternative to Regular Expressions", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -31,2 +31,12 @@ /* eslint-env mocha */ | ||
it('matches multiple double quoted strings', () => { | ||
assert.deepEqual( | ||
match( | ||
'three {string} and {string} mice', | ||
'three "blind" and "crippled" mice' | ||
), | ||
['blind', 'crippled'] | ||
) | ||
}) | ||
it('matches single quoted string', () => { | ||
@@ -38,2 +48,12 @@ assert.deepEqual(match('three {string} mice', "three 'blind' mice"), [ | ||
it('matches multiple single quoted strings', () => { | ||
assert.deepEqual( | ||
match( | ||
'three {string} and {string} mice', | ||
"three 'blind' and 'crippled' mice" | ||
), | ||
['blind', 'crippled'] | ||
) | ||
}) | ||
it('does not match misquoted string', () => { | ||
@@ -40,0 +60,0 @@ assert.deepEqual(match('three {string} mice', 'three "blind\' mice'), null) |
@@ -70,3 +70,3 @@ /* eslint-env mocha */ | ||
const group = tr.match("I go to '/hello'") | ||
assert.equal(group.children.value, 1) | ||
assert.equal(group.children.length, 1) | ||
}) | ||
@@ -73,0 +73,0 @@ |
204436
2605