Skip to content Skip to sidebar Skip to footer
Showing posts with the label Jasmine

Angular 1.5 Test Component With Jasmine

I try test my component with Jasmine and Angular-mock, but I don't know how this do. This is m… Read more Angular 1.5 Test Component With Jasmine

Return A Promise In Jasmine Directive Controller

In my unit test i need to return a promise so that my tests don't fail: describe('refugeeRe… Read more Return A Promise In Jasmine Directive Controller

Making Both Parts Of Expect Resolve Promises

The Problem: In Protractor, expect() is patched to implicitly understand promises which enables a s… Read more Making Both Parts Of Expect Resolve Promises

Jasmine 2.0 Async Beforeeach Not Waiting For Async To Finish

I am using Jasmine 2.0 and require.js. I cannot get the async tests to work properly when I put the… Read more Jasmine 2.0 Async Beforeeach Not Waiting For Async To Finish

Protractor + Simple-ssh How To Get It Sync Together In Jasmine

I'm writing some e2e tests with protractor . During one test I have to physically connect to de… Read more Protractor + Simple-ssh How To Get It Sync Together In Jasmine

Why Jasmine Spy Doesn't Resolve The Function Object By Reference?

I have the following simple service app.factory('Shoes', function() { function a() {ret… Read more Why Jasmine Spy Doesn't Resolve The Function Object By Reference?

Running Code Outside The "it" Block Breaks My Jasmine Test

I am trying to write some test cases (first time) using jasmine describe('Widget App core logi… Read more Running Code Outside The "it" Block Breaks My Jasmine Test

Jasmine 2.0 How To Wait Real Time Before Running An Expectation

I am trying to test the postMessage API as there is a slight delay before message are receive i can… Read more Jasmine 2.0 How To Wait Real Time Before Running An Expectation

Jasmine - How To Spyon Instance Methods

I have a function var data = {}; var myFunc = function() { data.stuff = new ClassName().doA().doB… Read more Jasmine - How To Spyon Instance Methods

How To Unit Test Async Redux Actions To Mock Ajax Response

I am creating a middleware for making ajax requests using async actions. The middleware intercepts … Read more How To Unit Test Async Redux Actions To Mock Ajax Response

Undefined|0|referenceerror: Strict Mode Forbids Implicit Creation Of Global Property 'csrf_token'

So, this was quite an interesting problem I have been running into. I am currently building a backb… Read more Undefined|0|referenceerror: Strict Mode Forbids Implicit Creation Of Global Property 'csrf_token'

Undefined|0|ReferenceError: Strict Mode Forbids Implicit Creation Of Global Property 'csrf_token'

So, this was quite an interesting problem I have been running into. I am currently building a backb… Read more Undefined|0|ReferenceError: Strict Mode Forbids Implicit Creation Of Global Property 'csrf_token'

Calling Click() Function On Html Element In Jasmine-phantomjs Test

I run my tests with Karma and PhantomJS: INFO [karma]: Karma v0.12.32 server started at http://loc… Read more Calling Click() Function On Html Element In Jasmine-phantomjs Test

Angular: How To Spy On $element.on

I have a directive which does something like this in its link function angular.module('myApp… Read more Angular: How To Spy On $element.on

In Jasmine, How Does One Test A Function That Uses Document.write

I have a function: var foo = function() { document.write( bar() ); }; My Jasmine test is: desc… Read more In Jasmine, How Does One Test A Function That Uses Document.write