Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code.
I'm new to Jasmine and have just started using it. I have a library js file with lots of functions …
javascript unit-testing jasmineIs there a way in jasmine.js to check if two arrays are equal, for example: arr = [1, 2, 3] expect(arr).toBe([1, 2, 3]) …
javascript jasmineWhat is the difference between expect(something).toBe(true), expect(something).toBeTruthy() and expect(something).toBeTrue()? Note that toBeTrue() is …
javascript testing jasmine protractor jasmine-matchersI have an AngularJS service written and I would like to unit test it. angular.module('myServiceProvider', ['fooServiceProvider', 'barServiceProvider']). factory(…
javascript angularjs mocking jasmine angularjs-serviceI have some unit tests for a function that makes use of the window.location.href -- not ideal I …
javascript mocking jasmineI have a function I'd like to test which calls an external API method twice, using different parameters. I'd like …
javascript unit-testing jasmineI have a bunch of failing specs from a rather large architectural change. I'd like to work on fixing them …
jasmineI'm attempting to unit test controller code inside a module that takes other modules as dependencies, but haven't been able …
unit-testing angularjs jasmine karma-runnerHow can I get this test to pass without resorting to runs/waitsFor blocks? it("cannot change timeout", function(done) { …
node.js jasmineI want to confirm that a value is a decimal (or 0), so the number should be greater than or equal …
javascript tdd jasmine