chutzpah - jasmine unable find inject

if you're getting some weird message "reference error: inject is not defined", This very likely means required.js is not loading angular mock library for you.

To fix that, declare a variable and reference it.

import * as mock from "angular-mocks/ngMock";
var load = mock;

Yeap, the fix is that simple. :)


Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

A quick tutorial for OWASP ZAP tool for beginners

OpenCover code coverage for .Net Core