ferronrsmith / angularjs-jasmine-matchers Goto Github PK
View Code? Open in Web Editor NEWanuglarjs jasmine matchers
License: MIT License
anuglarjs jasmine matchers
License: MIT License
I'd like to use these matchers internally at my company. Would you considering adding a MIT license that would allow us to do so?
Not everyone can use Bower as part of their system. Could you also add NPM support?
Hi, could you register your library with npm registry or bower, please?
Hello,
when a matcher fails, the message is always positive, and do not take not
into account.
example
expect(elem).toHaveText(/233/);
if fails
Expected '<xxxx>' to have text '/233/'.
but
expect(another).not.toHaveText(/23/);
if fails
Expected '<xxxx>' to have text '/23/'.
Use this.isNot
in the matcher to handle the negative case:
https://github.com/pivotal/jasmine/wiki/Matchers
Hi,
I'm trying your lib and it seems as if your code overwrites the default from jasmine.
When running this test
it("The 'toContain' matcher is for finding an item in an Array", function() {
var a = ['foo', 'bar', 'baz'];
expect(a).toContain('bar');
expect(a).not.toContain('quux');
});
it fails with
The 'toContain' matcher is for finding an item in an Array FAILED
TypeError: Object [object Array] has no method 'find'
at addMatchers.toContain (/.../app/lib/test/anuglarjs-jasmine-matchers/matchers.js:307:32)
Thanks, Leif
Hi,
great matchers! But how am I supposed to use your library with angular-scenario? The addMatchers
method is not available when using angular-scenario.
greetings
Hello,
thanks for these matchers.
The repo name is misspelled, "anuglar" should be "angular", it makes the repo hard to find when searching.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.