Procházet zdrojové kódy

test(core): Fix console error in lifecycle e2e test

Michael Bromley před 5 roky
rodič
revize
3471829e2c
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 2
      packages/core/e2e/lifecycle.e2e-spec.ts

+ 8 - 2
packages/core/e2e/lifecycle.e2e-spec.ts

@@ -1,4 +1,10 @@
-import { AutoIncrementIdStrategy, Injector, ProductService, ShippingEligibilityChecker } from '@vendure/core';
+import {
+    AutoIncrementIdStrategy,
+    defaultShippingEligibilityChecker,
+    Injector,
+    ProductService,
+    ShippingEligibilityChecker,
+} from '@vendure/core';
 import { createTestEnvironment } from '@vendure/testing';
 import path from 'path';
 
@@ -48,7 +54,7 @@ describe('lifecycle hooks for configurable objects', () => {
         ...testConfig,
         entityIdStrategy: new TestIdStrategy(),
         shippingOptions: {
-            shippingEligibilityCheckers: [testShippingEligChecker],
+            shippingEligibilityCheckers: [defaultShippingEligibilityChecker, testShippingEligChecker],
         },
     });