@@ -7,11 +7,11 @@ import {
77 authenticateSession ,
88 currentSession ,
99} from 'ember-simple-auth/test-support' ;
10- import config from '../.. /config/environment' ;
10+ import config from 'test-app /config/environment' ;
1111
1212module ( 'Acceptance: Authentication' , function ( hooks ) {
1313 setupApplicationTest ( hooks ) ;
14- let server ;
14+ let server : Pretender ;
1515
1616 hooks . afterEach ( function ( ) {
1717 if ( server ) {
@@ -85,7 +85,7 @@ module('Acceptance: Authentication', function (hooks) {
8585 } ) ;
8686
8787 await visit ( '/' ) ;
88- await authenticateSession ( { userId : 1 , otherData : 'some-data' } ) ;
88+ await authenticateSession ( { userId : '1' , otherData : 'some-data' } ) ;
8989 await visit ( '/protected' ) ;
9090
9191 let session = currentSession ( ) ;
@@ -133,7 +133,7 @@ module('Acceptance: Authentication', function (hooks) {
133133 '{"data":[]}' ,
134134 ] ) ;
135135 } ) ;
136- await authenticateSession ( { userId : 1 , otherData : 'some-data' } ) ;
136+ await authenticateSession ( { userId : '1' , otherData : 'some-data' } ) ;
137137 await visit ( '/engine/protected' ) ;
138138
139139 assert . equal ( currentURL ( ) , '/engine/protected' ) ;
@@ -150,7 +150,7 @@ module('Acceptance: Authentication', function (hooks) {
150150 '{"data":[]}' ,
151151 ] ) ;
152152 } ) ;
153- await authenticateSession ( { userId : 1 , otherData : 'some-data' } ) ;
153+ await authenticateSession ( { userId : '1' , otherData : 'some-data' } ) ;
154154 await visit ( '/engine/protected' ) ;
155155 await click ( '[data-test-logout-button]' ) ;
156156
@@ -168,7 +168,7 @@ module('Acceptance: Authentication', function (hooks) {
168168 '{"data":[]}' ,
169169 ] ) ;
170170 } ) ;
171- await authenticateSession ( { userId : 1 , otherData : 'some-data' } ) ;
171+ await authenticateSession ( { userId : '1' , otherData : 'some-data' } ) ;
172172 await visit ( '/engine/open-only' ) ;
173173
174174 assert . equal ( currentURL ( ) , '/' ) ;
@@ -191,7 +191,7 @@ module('Acceptance: Authentication', function (hooks) {
191191 } ) ;
192192
193193 test ( 'cannot be visited when the session is authenticated' , async function ( assert ) {
194- await authenticateSession ( ) ;
194+ await authenticateSession ( { } ) ;
195195 await visit ( '/login' ) ;
196196
197197 assert . equal ( currentURL ( ) , '/' ) ;
0 commit comments