Browse Source

test(email-plugin): Fix ts error in test

Michael Bromley 6 years ago
parent
commit
fa7203d593
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/email-plugin/src/plugin.spec.ts

+ 1 - 1
packages/email-plugin/src/plugin.spec.ts

@@ -220,7 +220,7 @@ describe('EmailPlugin', () => {
             await pause();
             expect(onSend).not.toHaveBeenCalled();
 
-            eventBus.publish(new OrderStateTransitionEvent('AddingItems', 'OrderComplete', ctx, order));
+            eventBus.publish(new OrderStateTransitionEvent('AddingItems', 'PaymentAuthorized', ctx, order));
             await pause();
             expect(onSend).not.toHaveBeenCalled();