Skip to content

Commit 0316ec4

Browse files
fix
1 parent f08e47e commit 0316ec4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/lib/notifications.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe ("Test post notification", () => {
154154
test("When passed recipients, priority, title, description to postNotification", () => {
155155
const expectedNotification = {
156156
NotificationTypeId: "01234567-89ab-cdef-0123-456789abcdef",
157-
NotificationTypeKey: "alert-notification/TestNotificationType",
157+
NotificationTypeKey: "notifications/TestNotificationType",
158158
NotificationTypeVersion: "1",
159159
NavigationTargetAction: "TestTargetAction",
160160
NavigationTargetObject: "TestTargetObject",

test/lib/util.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe("Test buildNotification functionality", () => {
102102

103103
test("When recipients, type, properties are passed to buildNotification", () => {
104104
const expectedNotification = {
105-
NotificationTypeKey: "notification/TestNotificationType",
105+
NotificationTypeKey: "notifications/TestNotificationType",
106106
NotificationTypeVersion: "1",
107107
Priority: "NEUTRAL",
108108
Properties: [
@@ -139,7 +139,7 @@ describe("Test buildNotification functionality", () => {
139139

140140
test("When recipients, type, properties, navigation are passed to buildNotification", () => {
141141
const expectedNotification = {
142-
NotificationTypeKey: "notification/TestNotificationType",
142+
NotificationTypeKey: "notifications/TestNotificationType",
143143
NotificationTypeVersion: "1",
144144
NavigationTargetAction: "TestTargetAction",
145145
NavigationTargetObject: "TestTargetObject",
@@ -182,7 +182,7 @@ describe("Test buildNotification functionality", () => {
182182

183183
test("When recipients, type, properties, navigation, priority are passed to buildNotification", () => {
184184
const expectedNotification = {
185-
NotificationTypeKey: "notification/TestNotificationType",
185+
NotificationTypeKey: "notifications/TestNotificationType",
186186
NotificationTypeVersion: "1",
187187
NavigationTargetAction: "TestTargetAction",
188188
NavigationTargetObject: "TestTargetObject",
@@ -229,7 +229,7 @@ describe("Test buildNotification functionality", () => {
229229
Id: "01234567-89ab-cdef-0123-456789abcdef",
230230
OriginId: "01234567-89ab-cdef-0123-456789abcdef",
231231
NotificationTypeId: "01234567-89ab-cdef-0123-456789abcdef",
232-
NotificationTypeKey: "notification/TestNotificationType",
232+
NotificationTypeKey: "notifications/TestNotificationType",
233233
NotificationTypeVersion: "1",
234234
NavigationTargetAction: "TestTargetAction",
235235
NavigationTargetObject: "TestTargetObject",
@@ -301,7 +301,7 @@ describe("Test buildNotification functionality", () => {
301301
test("When recipients, type, properties, navigation, priority, but with not all the payload are passed to buildNotification", () => {
302302
const expectedNotification = {
303303
NotificationTypeId: "01234567-89ab-cdef-0123-456789abcdef",
304-
NotificationTypeKey: "notification/TestNotificationType",
304+
NotificationTypeKey: "notifications/TestNotificationType",
305305
NotificationTypeVersion: "1",
306306
NavigationTargetAction: "TestTargetAction",
307307
NavigationTargetObject: "TestTargetObject",
@@ -370,7 +370,7 @@ describe("Test buildNotification functionality", () => {
370370

371371
test("When whole notification object is passed to buildNotification", () => {
372372
const expectedNotification = {
373-
NotificationTypeKey: "notification/TestNotificationType",
373+
NotificationTypeKey: "notifications/TestNotificationType",
374374
NotificationTypeVersion: "1",
375375
Priority: "NEUTRAL",
376376
Properties: [

0 commit comments

Comments
 (0)