I am having an issue upgrading ember simple auth.
TypeError: Cannot read property '__container__' of undefined
at authenticateSession (http://ift.tt/29JkZR6)
at Object.<anonymous> (http://ift.tt/2a1RfCH)
I have properly imported the new helper methods using:
import { authenticateSession } from '../helpers/ember-simple-auth';
Any thoughts on what I need to do to get it working?
Here is my test, trying to visit an authenticated route.
import { test } from 'qunit';
import moduleForAcceptance from '../helpers/module-for-acceptance';
import { authenticateSession } from '../helpers/ember-simple-auth';
moduleForAcceptance('Acceptance | overview');
test('visiting /overview', function(assert) {
authenticateSession();
visit('/overview');
andThen(function() {
assert.equal(currentURL(), '/overview');
});
});
Aucun commentaire:
Enregistrer un commentaire