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

Testing Keydown Events In Jasmine With Specific Keycode

I am writing tests for an AngularJS directive which fires events of a when certain keys are presse… Read more Testing Keydown Events In Jasmine With Specific Keycode

$scope Exists On Browser Debugger, But Does Not Exist In Terminal

I have a directive that is depended on a controller which gets data from an api though Ajax call. I… Read more $scope Exists On Browser Debugger, But Does Not Exist In Terminal

Jasmine Specs Without Specrunner.html - Js Dependencies

I have unit tests for an application where the javascript I wanted to test was dependent on other J… Read more Jasmine Specs Without Specrunner.html - Js Dependencies

Mongodb Node.js Deleteone Via _id Doesn't Work On Objectid

I'm trying to write test (spec) on a mongo DB wrapper and stumbled on this weird issue. My code… Read more Mongodb Node.js Deleteone Via _id Doesn't Work On Objectid

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

How To Deal With Thrown Errors In Async Code With Jasmine?

The following test causes Jasmine (2.3.4, run in browser via Karma) to crash and not run any subseq… Read more How To Deal With Thrown Errors In Async Code With Jasmine?

Protractor - Works Well On Localhost But Remote Throws Timeout - Async Callback Was Not Invoked Within Timeout Specified

When I execute protractor protractor.conf.js --baseUrl=http://localhost:4200/, it works well - fill… Read more Protractor - Works Well On Localhost But Remote Throws Timeout - Async Callback Was Not Invoked Within Timeout Specified

Mocking Xhr Calls In Jasmine

I have a question regarding mocking xhr in Jasmine. I have the following Javascript situation: func… Read more Mocking Xhr Calls In Jasmine