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