Top "Jasmine" questions

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

How to Load a File for Testing with Jasmine Node?

I have a simple JavaScript file, color.js, and a matching spec file, colorSpec.js. color.js: function Color() { } colorSpec.…

javascript bdd jasmine
What does the "it" function do in this code?

I'm hoping somebody could explain to me what "it" does (is used for) in AngularJS or just plain JavaScript (I'm …

javascript angularjs jasmine
E2E Testing in Protractor using Firefox or Safari?

I am using Protractor to test my angular.js app and its working great in Chrome. I had some issues …

angularjs selenium-webdriver jasmine selenium-chromedriver protractor
MatDialog Service Unit Test Angular 6 Error

I'm having modal service to open, confirm and close dialog and i am making its unit test file but i …

javascript angular unit-testing jasmine karma-jasmine
karma start Cannot find module 'jasmine-core'

I was getting the following error when I ran "karma start" module.js:340 throw err; ^ Error: Cannot find module 'jasmine-core' …

module jasmine karma-runner
How to get Jasmine's spyOnProperty to work?

I saw this post post and was excited to try it out, but I'm unable to get it working. Trying …

javascript angular unit-testing jasmine karma-jasmine
Angular 7 Test: NullInjectorError: No provider for ActivatedRoute

Hi have some error with testing my App made with Angular 7. I do not have much experience in angular, so …

angular testing jasmine karma-runner
Unknown provider CookieStore

I am having service where I want to use the $cookieStore module. It works fine, but when unit testing it …

angularjs jasmine angularjs-service karma-runner
how to unit test DOM manipulation (with jasmine)

I need to unit test some DOM manipulation functions with jasmine (currently I run my tests in the browser and …

unit-testing jasmine dom-manipulation
How do I add DOM elements in jasmine tests without using external html files?

I'm writing some simple jasmine tests and I'm getting an exception since the code I'm testing is looking for a …

jasmine jasmine-jquery