Skip to content

Conversation

@hokaccha
Copy link
Contributor

Not supported Array#indexOf browser(under IE8), this test is failed.

err(function () {
  expect(3).to.contain('baz');
}, "expected 3 to contain 'baz'");
// => Error: expected 'expected 3 to contain \'baz\'' to equal 'Expected an error'

This is indexOf bug.

indexOf(0, 'baz'); //=> 0

It fixed.

rauchg added a commit that referenced this pull request Feb 4, 2012
Fix bug `indexOf`. when arr is number, it was return 0
@rauchg rauchg merged commit 3b010b9 into Automattic:master Feb 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants