Comments (9)
I also have this issue with expect.js installed from npm.
Version from npm seems to be defective. I look into source and there is no withArgs declaration. The repo version has it. I've just downloaded expect.js file from this repo, replaced it and it works, so this is temporary solution.
MD5 (repo version) = 747992059c95f27351039870e30d7634
MD5 (npm version) = 3f43d4cfa0c5cb5301f15d8191e23276
from expect.js.
+1
from expect.js.
Actually, it looks like they just haven't made a new release since it was added ... 3 months ago.
from expect.js.
Agreed npm needs updating. Please publish withArgs public method
from expect.js.
@LearnBoost ping
from expect.js.
+1
from expect.js.
^
from expect.js.
npm allows you to install from a git repo, although not ideal
{
"devDependencies": {
"expect.js":"git://github.com/LearnBoost/expect.js.git#master"
}
}
from expect.js.
doesn't work for me, getting some npm error. tried your way too.
"expect.js": "https://github.com/LearnBoost/expect.js.git#master"
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.