Comments (2)
OK so yeah this was user error. I didn't realize that chai's version of expect and the one hosted here have different APIs. Is there a relationship between the two libraries? Or is chai just running its own fork of expect?
from expect.js.
Expect.js is based upon Should.js, while Chai is its own thing.
from expect.js.
Related Issues (20)
- TypeError: Object #<Assertion> has no method 'throw' HOT 2
- AssertionError
- Add a way to check a value is eql to someone
- expect(null).to.eql(undefined) HOT 1
- Value be Something OR SomethingElse HOT 6
- RangeError when comparing two objects with eql
- eql does not work if an array item is undefined in IE8 HOT 1
- Set comparison with eql is wrong HOT 2
- expect(fn).withArgs(...) rebinds `this` in fn
- TypeError: Cannot assign to read only property 'length' HOT 4
- Compare methods on Array.prototype defined by es5-shim/es5-sham HOT 1
- Is this project maintained? HOT 2
- expect().fail not working
- expect(...).to.be.closeTo(expected, delta) HOT 2
- Message not clear enough
- .eql() is broken in ES6 HOT 3
- General query - what are common test assertions used?
- expect(new Date()).to.eql(false)
- Please bump version and publish? last commit of throw alias was not included
- Expect().to.contain() doesn't compare object properties and values. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expect.js.