Skip to content

Commit e55a8a1

Browse files
updated from Set<> type to Array, for compatibility with isomorphic repo update.
1 parent c9af03b commit e55a8a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/commerce-sdk-react/src/hooks/ShopperConsents/mutation.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const baseSubscriptionResponse: ShopperConsentsTypes.ConsentSubscriptionResponse
3939
data: [
4040
{
4141
subscriptionId: 'test-subscription',
42-
channels: new Set(['email' as ShopperConsentsTypes.ChannelType]),
42+
channels: ['email' as ShopperConsentsTypes.ChannelType],
4343
contactPointValue: 'test@example.com'
4444
}
4545
]
@@ -124,7 +124,7 @@ describe('Cache update behavior', () => {
124124
data: [
125125
{
126126
subscriptionId: 'test-subscription',
127-
channels: new Set(['email' as ShopperConsentsTypes.ChannelType]),
127+
channels: ['email' as ShopperConsentsTypes.ChannelType],
128128
contactPointValue: 'test@example.com'
129129
}
130130
]
@@ -209,12 +209,12 @@ describe('Cache update behavior', () => {
209209
data: [
210210
{
211211
subscriptionId: 'test-subscription',
212-
channels: new Set(['email' as ShopperConsentsTypes.ChannelType]),
212+
channels: ['email' as ShopperConsentsTypes.ChannelType],
213213
contactPointValue: 'test@example.com'
214214
},
215215
{
216216
subscriptionId: 'test-subscription-2',
217-
channels: new Set(['sms' as ShopperConsentsTypes.ChannelType]),
217+
channels: ['sms' as ShopperConsentsTypes.ChannelType],
218218
contactPointValue: '+15551234567'
219219
}
220220
]

0 commit comments

Comments
 (0)