angular - Jasmine: Adding Lodash to Testing -
i'm using lodash in application/component. jasmine complaining:
failed: cannot read property 'eq' of undefined
i've added, lodash karma.conf
such as:{ pattern: './node_modules/lodash/lodash.min.js', included: true, watched: false }
still getting issue, correct way of including lodash?
just import lodash in component:
import * _ 'lodash'
wiki
Comments
Post a Comment