@@ -113,7 +113,8 @@ describe('Parse User', () => {
113
113
114
114
it ( 'can login users with installationId' , async ( ) => {
115
115
Parse . User . enableUnsafeCurrentUser ( ) ;
116
- const currentInstallationId = await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
116
+ const currentInstallationId =
117
+ await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
117
118
const installationId = '12345678' ;
118
119
const user = new Parse . User ( ) ;
119
120
user . set ( 'username' , 'parse' ) ;
@@ -149,7 +150,8 @@ describe('Parse User', () => {
149
150
} ) ;
150
151
151
152
it ( 'can get current installation' , async ( ) => {
152
- const currentInstallationId = await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
153
+ const currentInstallationId =
154
+ await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
153
155
const installation = await Parse . Installation . currentInstallation ( ) ;
154
156
expect ( installation . installationId ) . toBe ( currentInstallationId ) ;
155
157
expect ( installation . deviceType ) . toBe ( Parse . Installation . DEVICE_TYPES . WEB ) ;
@@ -180,7 +182,8 @@ describe('Parse User', () => {
180
182
} ) ;
181
183
182
184
it ( 'can save new installation when deleted' , async ( ) => {
183
- const currentInstallationId = await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
185
+ const currentInstallationId =
186
+ await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
184
187
const installation = await Parse . Installation . currentInstallation ( ) ;
185
188
expect ( installation . installationId ) . toBe ( currentInstallationId ) ;
186
189
expect ( installation . deviceType ) . toBe ( Parse . Installation . DEVICE_TYPES . WEB ) ;
@@ -196,7 +199,8 @@ describe('Parse User', () => {
196
199
} ) ;
197
200
198
201
it ( 'can fetch installation when deleted' , async ( ) => {
199
- const currentInstallationId = await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
202
+ const currentInstallationId =
203
+ await Parse . CoreManager . getInstallationController ( ) . currentInstallationId ( ) ;
200
204
const installation = await Parse . Installation . currentInstallation ( ) ;
201
205
expect ( installation . installationId ) . toBe ( currentInstallationId ) ;
202
206
expect ( installation . deviceType ) . toBe ( Parse . Installation . DEVICE_TYPES . WEB ) ;
@@ -227,9 +231,7 @@ describe('Parse User', () => {
227
231
228
232
await Parse . User . logOut ( ) ;
229
233
assert ( ! Parse . User . current ( ) ) ;
230
- await expectAsync ( Parse . User . loginAs ( 'garbage' ) ) . toBeRejectedWithError (
231
- 'user not found'
232
- ) ;
234
+ await expectAsync ( Parse . User . loginAs ( 'garbage' ) ) . toBeRejectedWithError ( 'user not found' ) ;
233
235
} ) ;
234
236
235
237
it ( 'can become a user' , done => {
@@ -1128,7 +1130,10 @@ describe('Parse User', () => {
1128
1130
preventLoginWithUnverifiedEmail : true ,
1129
1131
} ) ;
1130
1132
await Parse . User . signUp ( 'asd123' , 'xyz123' ) ;
1131
- const res = await Parse . User . verifyPassword ( 'asd123' , 'xyz123' , { useMasterKey : true , ignoreEmailVerification : true } ) ;
1133
+ const res = await Parse . User . verifyPassword ( 'asd123' , 'xyz123' , {
1134
+ useMasterKey : true ,
1135
+ ignoreEmailVerification : true ,
1136
+ } ) ;
1132
1137
expect ( typeof res ) . toBe ( 'object' ) ;
1133
1138
expect ( res . username ) . toBe ( 'asd123' ) ;
1134
1139
} ) ;
0 commit comments