diff --git a/packages/ember-simple-auth/addon/configuration.js b/packages/ember-simple-auth/addon/configuration.js index 188a4be7c..0a967d9dd 100644 --- a/packages/ember-simple-auth/addon/configuration.js +++ b/packages/ember-simple-auth/addon/configuration.js @@ -40,6 +40,10 @@ export default { load(config) { this.rootURL = getWithDefault(config, 'rootURL', DEFAULTS.rootURL); - this.routeAfterAuthentication = getWithDefault(config, 'ember-simple-auth.routeAfterAuthentication', DEFAULTS.routeAfterAuthentication); - } + this.routeAfterAuthentication = getWithDefault( + config, + 'routeAfterAuthentication', + DEFAULTS.routeAfterAuthentication + ); + }, }; diff --git a/packages/ember-simple-auth/tests/unit/configuration-test.js b/packages/ember-simple-auth/tests/unit/configuration-test.js index 4976ebd1e..af45b3199 100644 --- a/packages/ember-simple-auth/tests/unit/configuration-test.js +++ b/packages/ember-simple-auth/tests/unit/configuration-test.js @@ -31,7 +31,7 @@ describe('Configuration', () => { }); it('sets routeAfterAuthentication correctly', function() { - Configuration.load({ 'ember-simple-auth': { routeAfterAuthentication: '/some-route' } }); + Configuration.load({ routeAfterAuthentication: '/some-route' }); expect(Configuration.routeAfterAuthentication).to.eql('/some-route'); });