From f53446d5139d99d09c3c3d47a259d0f02aa853ee Mon Sep 17 00:00:00 2001 From: Balint Erdi Date: Mon, 13 Feb 2017 22:05:56 +0100 Subject: [PATCH] Fix authenticator blueprint test --- bower.json | 12 ++++++++++-- node-tests/blueprints/authenticator-test.js | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 0a4127e297..51a880c85c 100644 --- a/bower.json +++ b/bower.json @@ -4,6 +4,14 @@ "base64": "~1.0.0", "bootstrap": "~3.3.7", "pretender": "~1.1.0", - "sinonjs": "~1.17.1" + "sinonjs": "~1.17.1", + "ember": "~1.12.0", + "ember-data": "~1.13.0", + "ember-cli-shims": "0.0.6" + }, + "resolutions": { + "ember": "~1.12.0", + "ember-data": "~1.13.0", + "ember-cli-shims": "0.0.6" } -} +} \ No newline at end of file diff --git a/node-tests/blueprints/authenticator-test.js b/node-tests/blueprints/authenticator-test.js index f97160dd00..d847a1d158 100644 --- a/node-tests/blueprints/authenticator-test.js +++ b/node-tests/blueprints/authenticator-test.js @@ -14,7 +14,8 @@ describe('Acceptance: ember generate and destroy authenticator', function() { it('generates a torii authenticator', function() { return emberNew().then(() => generateAndDestroy(['authenticator', 'application', '--base-class=torii'], (file) => { expect(file('app/authenticators/application.js')).to.contain('\ -import Torii from \'ember-simple-auth/authenticators/torii\';' + EOL + '\ +import Ember from \'ember\';' + EOL + +'import Torii from \'ember-simple-auth/authenticators/torii\';' + EOL + '\ ' + EOL + '\ export default Torii.extend({' + EOL + '\ torii: Ember.inject.service(\'torii\')' + EOL + '\