Top "Jasmine" questions

Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code.

Angular testing how to prevent ngOnInit call to test a method directly

Context I have a component. Inside of it, the ngOnInit function calls another function of component to retrieve user List. …

angular typescript jasmine karma-jasmine
How can I test events in angular?

I need to test that events get correctly emitted or broadcast, and trigger events manually. What's the best way to …

angularjs unit-testing angularjs-directive jasmine dom-events
Output jasmine test results to the console

I am using Jasmine (BDD Testing Framework for JavaScript) in my firefox add-on to test the functionality of my code. …

javascript firefox-addon javascript-framework jasmine
JavaScript code coverage with Jasmine

We are planning to introduce JavaScript unit testing in our project and so far Jasmine appears to be one of …

javascript code-coverage jasmine
What is the difference between describe and it in Jest?

When writing a unit test in Jest or Jasmine when do you use describe? When do you use it? I …

jasmine jestjs
How can I get WebStorm to recognize Jasmine methods?

I have a node.js project that contains some Jasmine specifications. The specifications are in a spec/ subdirectory and have …

jasmine webstorm
How to reuse beforeEach/afterEach in Jasmine JS?

When writing tests with JasmineJS I have many tests that have similar beforeEach/afterEach code. Is there a way to …

javascript testing jasmine dry
Is there a jasmine matcher to compare objects on subsets of their properties

I have an object that may be extended along my behavior under test, but I want to make sure that …

javascript unit-testing jasmine
Is it possible to use Jasmine's toHaveBeenCalledWith matcher with a regular expression?

I have reviewed Jasmine's documentation of the toHaveBeenCalledWith matcher in order to understand whether it's possible to pass in a …

jasmine
Jasmine tests AngularJS Directives with templateUrl

I'm writing directive tests for AngularJS with Jasmine, and using templateUrl with them: https://gist.github.com/tanepiper/62bd10125e8408…

unit-testing angularjs jasmine angularjs-directive