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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -