We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to use eql to compare two objects:
eql
expect(tokenizeTagText(text)).to.eql([new TextField('only text field')]);
But I get this using mocha:
mocha
RangeError: Maximum call stack size exceeded
However, if I change the test to use equal, they look the same:
equal
Error: expected [ { name: 'only text field', markup: { '0': <input value="only text field">, length: 1 } } ] to equal [ { name: 'only text field', markup: { '0': <input value="only text field">, length: 1 } } ]
It seems the RangeError comes from expect.js.
RangeError
It seems the issue is with comparing jQuery elements:
it('failing', function () { expect([ { name: 'only text field', markup: { '0': $('<input value="only text field">'), length: 1 } } ]).to.eql([ { name: 'only text field', markup: { '0': $('<input value="only text field">'), length: 1 } } ]); }); it('successful', function () { expect([ { name: 'only text field', markup: { '0': '<input value="only text field">', length: 1 } } ]).to.eql([ { name: 'only text field', markup: { '0': '<input value="only text field">', length: 1 } } ]); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'd like to use
eql
to compare two objects:But I get this using
mocha
:However, if I change the test to use
equal
, they look the same:It seems the
RangeError
comes from expect.js.It seems the issue is with comparing jQuery elements:
The text was updated successfully, but these errors were encountered: