@@ -21,13 +21,15 @@ const getMockContenfulConfiguration = (): ContentfulProviderConfig.FullShape =>
21
21
productSlug : "product-slug" ,
22
22
variantId : "variant-id" ,
23
23
variantName : "variant-name" ,
24
+ variantSku : "variant-sku" ,
24
25
} ,
25
26
} ) ;
26
27
27
28
const getMockWebhookProductVariant = ( ) : WebhookProductVariantFragment => {
28
29
return {
29
30
id : "test-id" ,
30
31
name : "test-name" ,
32
+ sku : "test-sku" ,
31
33
product : {
32
34
id : "test-product-id" ,
33
35
name : "test-product-name" ,
@@ -61,7 +63,7 @@ describe("ContentfulWebhooksProcessor", () => {
61
63
62
64
processor = new ContentfulWebhooksProcessor (
63
65
getMockContenfulConfiguration ( ) ,
64
- ( ) => mockContentfulClient
66
+ ( ) => mockContentfulClient ,
65
67
) ;
66
68
} ) ;
67
69
@@ -74,7 +76,7 @@ describe("ContentfulWebhooksProcessor", () => {
74
76
expect . objectContaining ( {
75
77
configuration : getMockContenfulConfiguration ( ) ,
76
78
variant : mockProductVariant ,
77
- } )
79
+ } ) ,
78
80
) ;
79
81
} ) ;
80
82
@@ -87,7 +89,7 @@ describe("ContentfulWebhooksProcessor", () => {
87
89
expect . objectContaining ( {
88
90
configuration : getMockContenfulConfiguration ( ) ,
89
91
variant : mockProductVariant ,
90
- } )
92
+ } ) ,
91
93
) ;
92
94
} ) ;
93
95
@@ -100,7 +102,7 @@ describe("ContentfulWebhooksProcessor", () => {
100
102
expect . objectContaining ( {
101
103
configuration : getMockContenfulConfiguration ( ) ,
102
104
variant : mockProductVariant ,
103
- } )
105
+ } ) ,
104
106
) ;
105
107
} ) ;
106
108
0 commit comments