@@ -12,7 +12,7 @@ describe('CoreModuleDirector tests', () => {
1212
1313 describe ( 'getPushSubscriptionModel' , ( ) => {
1414 async function getPushSubscriptionModel ( ) {
15- return ( await getCoreModuleDirector ( ) ) . getPushSubscriptionModel ( ) ;
15+ return ( await getCoreModuleDirector ( ) ) . _getPushSubscriptionModel ( ) ;
1616 }
1717
1818 test ( 'returns undefined when it find no push records' , async ( ) => {
@@ -23,9 +23,7 @@ describe('CoreModuleDirector tests', () => {
2323 const pushModelCurrent = generateNewSubscription ( ) ;
2424 vi . spyOn (
2525 CoreModuleDirector . prototype ,
26- // @ts -expect-error - private method
27- 'getPushSubscriptionModelByCurrentToken' ,
28- // @ts -expect-error - private method
26+ '_getPushSubscriptionModelByCurrentToken' ,
2927 ) . mockResolvedValue ( pushModelCurrent ) ;
3028 expect ( await getPushSubscriptionModel ( ) ) . toBe ( pushModelCurrent ) ;
3129 } ) ;
@@ -34,9 +32,7 @@ describe('CoreModuleDirector tests', () => {
3432 const pushModelLastKnown = generateNewSubscription ( ) ;
3533 vi . spyOn (
3634 CoreModuleDirector . prototype ,
37- // @ts -expect-error - private method
38- 'getPushSubscriptionModelByLastKnownToken' ,
39- // @ts -expect-error - private method
35+ '_getPushSubscriptionModelByLastKnownToken' ,
4036 ) . mockResolvedValue ( pushModelLastKnown ) ;
4137 expect ( await getPushSubscriptionModel ( ) ) . toEqual ( pushModelLastKnown ) ;
4238 } ) ;
@@ -45,17 +41,13 @@ describe('CoreModuleDirector tests', () => {
4541 const pushModelCurrent = generateNewSubscription ( ) ;
4642 vi . spyOn (
4743 CoreModuleDirector . prototype ,
48- // @ts -expect-error - private method
49- 'getPushSubscriptionModelByCurrentToken' ,
50- // @ts -expect-error - private method
44+ '_getPushSubscriptionModelByCurrentToken' ,
5145 ) . mockResolvedValue ( pushModelCurrent ) ;
5246
5347 const pushModelLastKnown = generateNewSubscription ( ) ;
5448 vi . spyOn (
5549 CoreModuleDirector . prototype ,
56- // @ts -expect-error - private method
57- 'getPushSubscriptionModelByLastKnownToken' ,
58- // @ts -expect-error - private method
50+ '_getPushSubscriptionModelByLastKnownToken' ,
5951 ) . mockResolvedValue ( pushModelLastKnown ) ;
6052
6153 expect ( await getPushSubscriptionModel ( ) ) . toBe ( pushModelCurrent ) ;
0 commit comments