dimanche 4 octobre 2015

Ember-cli import node package into test

I need to include jwt-simple into a test so that I can generate JWT tokens and validate the UI does what it needs to do given certain scenarios.

I have tried npm install jwt-simple and then import jwt from 'jwt-simple/jwt'; and import jwt from 'jwt-simple'; but neither work.

Should I be able to import node packages into the tests like this?




Aucun commentaire:

Enregistrer un commentaire