@@ -76,14 +76,14 @@ describe("push-notifications-fcm", () => {
7676 } ) ;
7777 } ) ;
7878
79- describe ( ' send push notifications with custom data' , ( ) => {
79+ describe ( " send push notifications with custom data" , ( ) => {
8080 const customDataMessage = {
81- title : ' Notification Title' ,
82- body : ' Notification Body' ,
81+ title : " Notification Title" ,
82+ body : " Notification Body" ,
8383 custom : {
84- userId : ' 12345' ,
85- actionId : ' action-001' ,
86- deepLink : ' app://section/item' ,
84+ userId : " 12345" ,
85+ actionId : " action-001" ,
86+ deepLink : " app://section/item" ,
8787 } ,
8888 } ;
8989
@@ -92,7 +92,7 @@ describe("push-notifications-fcm", () => {
9292 function sendCustomDataMethod ( ) {
9393 return sinon . stub (
9494 fbMessaging . prototype ,
95- ' sendEachForMulticast' ,
95+ " sendEachForMulticast" ,
9696 function sendFCMWithCustomData ( firebaseMessage ) {
9797 const { custom } = customDataMessage ;
9898
@@ -102,8 +102,8 @@ describe("push-notifications-fcm", () => {
102102 // Verify custom data does NOT pollute the notification
103103 // Note: normalizeDataParams converts all values to strings (FCM requirement)
104104 expect ( firebaseMessage . android . data ) . to . deep . equal ( custom ) ;
105- expect ( firebaseMessage . android . data ) . to . not . have . property ( ' title' ) ;
106- expect ( firebaseMessage . android . data ) . to . not . have . property ( ' body' ) ;
105+ expect ( firebaseMessage . android . data ) . to . not . have . property ( " title" ) ;
106+ expect ( firebaseMessage . android . data ) . to . not . have . property ( " body" ) ;
107107
108108 // Verify notification has proper fields (separate from data)
109109 expect ( firebaseMessage . android . notification ) . to . include ( {
@@ -128,11 +128,11 @@ describe("push-notifications-fcm", () => {
128128 customDataSendMethod . restore ( ) ;
129129 } ) ;
130130
131- it ( ' custom data should be preserved and not mixed with notification fields' , ( done ) => {
131+ it ( " custom data should be preserved and not mixed with notification fields" , ( done ) => {
132132 pn . send ( regIds , customDataMessage )
133133 . then ( ( results ) => {
134- expect ( results ) . to . be . an ( ' array' ) ;
135- expect ( results [ 0 ] . method ) . to . equal ( ' fcm' ) ;
134+ expect ( results ) . to . be . an ( " array" ) ;
135+ expect ( results [ 0 ] . method ) . to . equal ( " fcm" ) ;
136136 expect ( results [ 0 ] . success ) . to . equal ( 1 ) ;
137137 done ( ) ;
138138 } )
0 commit comments