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. :)


Comments

Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

OpenCover code coverage for .Net Core

Using Custom DLL with IronPython / Scripts