Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 5b36cf3

Browse files
committed
Update tests to pass CI/CD checks
1 parent 06a210b commit 5b36cf3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/shopify-api/lib/webhooks/__tests__/registry.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ describe('shopify.webhooks.addHandlers', () => {
6969
return shopify.webhooks.addHandlers({
7070
PRODUCTS_CREATE: [EVENT_BRIDGE_HANDLER, EVENT_BRIDGE_HANDLER],
7171
});
72-
}).toThrow('Can only add multiple handlers when deliveryMethod is Http.');
72+
}).toThrow(
73+
'Can only add multiple handlers for a topic when deliveryMethod is Http. Please be sure that you used addHandler method once after creating ShopifyApi instance in your app.',
74+
);
7375
});
7476

7577
it('fails if pubsub handlers point to the same location', async () => {
@@ -79,7 +81,9 @@ describe('shopify.webhooks.addHandlers', () => {
7981
return shopify.webhooks.addHandlers({
8082
PRODUCTS_CREATE: [PUB_SUB_HANDLER, PUB_SUB_HANDLER],
8183
});
82-
}).toThrow('Can only add multiple handlers when deliveryMethod is Http.');
84+
}).toThrow(
85+
'Can only add multiple handlers for a topic when deliveryMethod is Http. Please be sure that you used addHandler method once after creating ShopifyApi instance in your app.',
86+
);
8387
});
8488

8589
it('adds handler with lowercase/slash-period format to the webhook registry', async () => {

0 commit comments

Comments
 (0)