There are uncaught assertion error in Chai with Cucumber-js. If in the DocString there are a hyphen - assertion does not work. So if I have scenario DocString, like
Then I see message:
'''
somewhat1
somewhat2
somewhat3 - somewhat4
'''
I cannot use assert.equal
or assert.include
assertions because recieve an assertion error, although both arguments is absolutely identical.
If I use DocString without hyphen, like
Then I see message:
'''
somewhat1
somewhat2
somewhat3
'''
there are no any troubles.
Why I recieve an error when use hyphen? There are any idea how can I use hyphen right in DocString? Thanks.