Closed matthewmueller closed 12 years ago
hmm the docs should mention .should.include(str)
now, and array.should.include(value)
I'm seeing:
Substring assertion:
'foobar'.should.include.string('foo')
fixed
doesn't seem to work anymore. however with es6 help, can do:
'foobar'.includes('foo').should.be.true()
I'm getting errors in my test files and it looks like it's because
should.include.string
doesn't exist anymore. It's still in the docs, but it doesn't look like you're testing for it in should's test files.Is
should.include
replacingshould.include.string
? Are they equivalent?Thanks! Matt