Browse Source

test(email-plugin): Fix failing test

Michael Bromley 3 years ago
parent
commit
2319f6b5f7
1 changed files with 3 additions and 2 deletions
  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,
             _languageCode: LanguageCode.en,
         } as any);
         } as any);
 
 
-        const order = ({
+        const order = {
             code: 'ABCDE',
             code: 'ABCDE',
             customer: {
             customer: {
                 emailAddress: 'test@test.com',
                 emailAddress: 'test@test.com',
             },
             },
-        } as Partial<Order>) as any;
+            lines: [],
+        } as any;
 
 
         it('filters events with wrong order state', async () => {
         it('filters events with wrong order state', async () => {
             eventBus.publish(new OrderStateTransitionEvent('AddingItems', 'ArrangingPayment', ctx, order));
             eventBus.publish(new OrderStateTransitionEvent('AddingItems', 'ArrangingPayment', ctx, order));