@@ -33,7 +33,7 @@ import { getFakeInstallations } from '../testing/fake-generators';
33
33
import '../testing/setup' ;
34
34
import { ErrorCode } from '../util/errors' ;
35
35
import { sleep } from '../util/sleep' ;
36
- import { deleteInstallation } from './delete-installation ' ;
36
+ import { deleteInstallations } from './delete-installations ' ;
37
37
38
38
const FID = 'children-of-the-damned' ;
39
39
@@ -56,7 +56,7 @@ describe('deleteInstallation', () => {
56
56
} ) ;
57
57
58
58
it ( 'resolves without calling server API if there is no installation' , async ( ) => {
59
- await expect ( deleteInstallation ( installations ) ) . to . be . fulfilled ;
59
+ await expect ( deleteInstallations ( installations ) ) . to . be . fulfilled ;
60
60
expect ( deleteInstallationRequestSpy ) . not . to . have . been . called ;
61
61
} ) ;
62
62
@@ -67,7 +67,7 @@ describe('deleteInstallation', () => {
67
67
} ;
68
68
await set ( installations . appConfig , entry ) ;
69
69
70
- await expect ( deleteInstallation ( installations ) ) . to . be . fulfilled ;
70
+ await expect ( deleteInstallations ( installations ) ) . to . be . fulfilled ;
71
71
expect ( deleteInstallationRequestSpy ) . not . to . have . been . called ;
72
72
await expect ( get ( installations . appConfig ) ) . to . eventually . be . undefined ;
73
73
} ) ;
@@ -80,7 +80,7 @@ describe('deleteInstallation', () => {
80
80
} ;
81
81
await set ( installations . appConfig , entry ) ;
82
82
83
- await expect ( deleteInstallation ( installations ) ) . to . be . rejectedWith (
83
+ await expect ( deleteInstallations ( installations ) ) . to . be . rejectedWith (
84
84
ErrorCode . DELETE_PENDING_REGISTRATION
85
85
) ;
86
86
expect ( deleteInstallationRequestSpy ) . not . to . have . been . called ;
@@ -101,7 +101,7 @@ describe('deleteInstallation', () => {
101
101
await set ( installations . appConfig , entry ) ;
102
102
stub ( navigator , 'onLine' ) . value ( false ) ;
103
103
104
- await expect ( deleteInstallation ( installations ) ) . to . be . rejectedWith (
104
+ await expect ( deleteInstallations ( installations ) ) . to . be . rejectedWith (
105
105
ErrorCode . APP_OFFLINE
106
106
) ;
107
107
expect ( deleteInstallationRequestSpy ) . not . to . have . been . called ;
@@ -121,7 +121,7 @@ describe('deleteInstallation', () => {
121
121
} ;
122
122
await set ( installations . appConfig , entry ) ;
123
123
124
- await expect ( deleteInstallation ( installations ) ) . to . be . fulfilled ;
124
+ await expect ( deleteInstallations ( installations ) ) . to . be . fulfilled ;
125
125
expect ( deleteInstallationRequestSpy ) . to . have . been . calledOnceWith (
126
126
installations . appConfig ,
127
127
entry
0 commit comments