@@ -60,7 +60,7 @@ describe('NotificationService', () => {
6060 test ( 'withNotification should work correctly' , ( ) => {
6161 spectator = createService ( ) ;
6262
63- spectator . service . withNotification ( of ( true ) , 'success' , 'failure' ) . subscribe ( ) ;
63+ spectator . service . wrapWithNotification ( of ( true ) , 'success' , 'failure' ) . subscribe ( ) ;
6464
6565 expect ( spectator . inject ( MatSnackBar ) . openFromComponent ) . toHaveBeenLastCalledWith (
6666 NotificationComponent ,
@@ -72,7 +72,7 @@ describe('NotificationService', () => {
7272 } )
7373 ) ;
7474
75- spectator . service . withNotification ( throwError ( 'error' ) , 'success' , 'failure' ) . subscribe ( ) ;
75+ spectator . service . wrapWithNotification ( throwError ( 'error' ) , 'success' , 'failure' ) . subscribe ( ) ;
7676
7777 expect ( spectator . inject ( MatSnackBar ) . openFromComponent ) . toHaveBeenLastCalledWith (
7878 NotificationComponent ,
@@ -88,7 +88,7 @@ describe('NotificationService', () => {
8888 test ( 'withNotification operator should work correctly' , ( ) => {
8989 spectator = createService ( ) ;
9090
91- of ( true ) . pipe ( spectator . service . withNotificationOperator ( 'success' , 'failure' ) ) . subscribe ( ) ;
91+ of ( true ) . pipe ( spectator . service . withNotification ( 'success' , 'failure' ) ) . subscribe ( ) ;
9292
9393 expect ( spectator . inject ( MatSnackBar ) . openFromComponent ) . toHaveBeenLastCalledWith (
9494 NotificationComponent ,
@@ -100,7 +100,7 @@ describe('NotificationService', () => {
100100 } )
101101 ) ;
102102
103- throwError ( 'error' ) . pipe ( spectator . service . withNotificationOperator ( 'success' , 'failure' ) ) . subscribe ( ) ;
103+ throwError ( 'error' ) . pipe ( spectator . service . withNotification ( 'success' , 'failure' ) ) . subscribe ( ) ;
104104
105105 expect ( spectator . inject ( MatSnackBar ) . openFromComponent ) . toHaveBeenLastCalledWith (
106106 NotificationComponent ,
0 commit comments