فهرست منبع

test(email-plugin): Fix failing test

Michael Bromley 3 سال پیش
والد
کامیت
2319f6b5f7
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      packages/email-plugin/src/plugin.spec.ts

+ 3 - 2
packages/email-plugin/src/plugin.spec.ts

@@ -647,12 +647,13 @@ describe('EmailPlugin', () => {
             _languageCode: LanguageCode.en,
         } as any);
 
-        const order = ({
+        const order = {
             code: 'ABCDE',
             customer: {
                 emailAddress: 'test@test.com',
             },
-        } as Partial<Order>) as any;
+            lines: [],
+        } as any;
 
         it('filters events with wrong order state', async () => {
             eventBus.publish(new OrderStateTransitionEvent('AddingItems', 'ArrangingPayment', ctx, order));