@@ -47,7 +47,7 @@ describe('joining a room', function () {
47
47
var parentDiv ;
48
48
var httpBackend ;
49
49
var matrixChat ;
50
-
50
+
51
51
beforeEach ( function ( ) {
52
52
test_utils . beforeEach ( this ) ;
53
53
httpBackend = new MockHttpBackend ( ) ;
@@ -66,11 +66,11 @@ describe('joining a room', function () {
66
66
parentDiv = null ;
67
67
}
68
68
} ) ;
69
-
69
+
70
70
it ( 'should not get stuck at a spinner' , function ( done ) {
71
71
var ROOM_ALIAS = '#alias:localhost' ;
72
72
var ROOM_ID = '!id:localhost' ;
73
-
73
+
74
74
httpBackend . when ( 'PUT' , '/presence/' + encodeURIComponent ( USER_ID ) + '/status' )
75
75
. respond ( 200 , { } ) ;
76
76
httpBackend . when ( 'GET' , '/pushrules' ) . respond ( 200 , { } ) ;
@@ -80,14 +80,11 @@ describe('joining a room', function () {
80
80
httpBackend . when ( 'GET' , '/directory/room/' + encodeURIComponent ( ROOM_ALIAS ) ) . respond ( 200 , { room_id : ROOM_ID } ) ;
81
81
82
82
// start with a logged-in client
83
- peg . replaceUsingCreds ( {
84
- homeserverUrl : HS_URL ,
85
- identityServerUrl : IS_URL ,
86
- userId : USER_ID ,
87
- accessToken : ACCESS_TOKEN ,
88
- guest : false ,
89
- } ) ;
90
-
83
+ localStorage . setItem ( "mx_hs_url" , HS_URL ) ;
84
+ localStorage . setItem ( "mx_is_url" , IS_URL ) ;
85
+ localStorage . setItem ( "mx_access_token" , ACCESS_TOKEN ) ;
86
+ localStorage . setItem ( "mx_user_id" , USER_ID ) ;
87
+
91
88
var mc = < MatrixChat config = { { } } /> ;
92
89
matrixChat = ReactDOM . render ( mc , parentDiv ) ;
93
90
0 commit comments