File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2085,19 +2085,19 @@ describe('Messaging', () => {
2085
2085
invalidPayloads . forEach ( ( invalidPayload ) => {
2086
2086
it ( `should throw given invalid type for payload argument: ${ JSON . stringify ( invalidPayload ) } ` , ( ) => {
2087
2087
expect ( ( ) => {
2088
- messaging . sendToDevice ( mocks . messaging . registrationToken , invalidPayload as unknown as MessagingPayload ) ;
2088
+ messaging . sendToDevice ( mocks . messaging . registrationToken , invalidPayload as any ) ;
2089
2089
} ) . to . throw ( 'Messaging payload must be an object' ) ;
2090
2090
2091
2091
expect ( ( ) => {
2092
- messaging . sendToDeviceGroup ( mocks . messaging . notificationKey , invalidPayload as unknown as MessagingPayload ) ;
2092
+ messaging . sendToDeviceGroup ( mocks . messaging . notificationKey , invalidPayload as any ) ;
2093
2093
} ) . to . throw ( 'Messaging payload must be an object' ) ;
2094
2094
2095
2095
expect ( ( ) => {
2096
- messaging . sendToTopic ( mocks . messaging . topic , invalidPayload as unknown as MessagingPayload ) ;
2096
+ messaging . sendToTopic ( mocks . messaging . topic , invalidPayload as any ) ;
2097
2097
} ) . to . throw ( 'Messaging payload must be an object' ) ;
2098
2098
2099
2099
expect ( ( ) => {
2100
- messaging . sendToCondition ( mocks . messaging . condition , invalidPayload as unknown as MessagingPayload ) ;
2100
+ messaging . sendToCondition ( mocks . messaging . condition , invalidPayload as any ) ;
2101
2101
} ) . to . throw ( 'Messaging payload must be an object' ) ;
2102
2102
} ) ;
2103
2103
} ) ;
You can’t perform that action at this time.
0 commit comments