From fc70230fa5db5e934bcf53e9c4dbd09bbe081b73 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Tue, 21 Nov 2023 17:11:23 +0100 Subject: [PATCH] chore(core): Tidy up e2e test file --- packages/core/e2e/money-strategy.e2e-spec.ts | 41 -------------------- 1 file changed, 41 deletions(-) diff --git a/packages/core/e2e/money-strategy.e2e-spec.ts b/packages/core/e2e/money-strategy.e2e-spec.ts index fb8006eaa3..dba876be27 100644 --- a/packages/core/e2e/money-strategy.e2e-spec.ts +++ b/packages/core/e2e/money-strategy.e2e-spec.ts @@ -139,44 +139,3 @@ describe('Custom MoneyStrategy', () => { expect(addItemToOrder.lines[0].linePriceWithTax).toBe(372); }); }); -// -// -// describe('custom MoneyStrategy as part of a plugin', () => { -// const testConfigValue = testConfig(); -// delete testConfigValue.entityOptions.moneyStrategy; -// const { server, adminClient, shopClient } = createTestEnvironment( -// mergeConfig(testConfigValue, { -// plugins: [MyPlugin], -// }), -// ); -// -// beforeAll(async () => { -// await server.init({ -// initialData, -// productsCsvPath: path.join(__dirname, 'fixtures/e2e-products-money-handling.csv'), -// customerCount: 1, -// }); -// await adminClient.asSuperAdmin(); -// }, TEST_SETUP_TIMEOUT_MS); -// -// afterAll(async () => { -// await server.destroy(); -// }); -// -// it('invokes the transformer', async () => { -// CustomMoneyStrategy.transformerFromSpy.mockReset(); -// -// expect(CustomMoneyStrategy.transformerFromSpy).toHaveBeenCalledTimes(0); -// -// await shopClient.asAnonymousUser(); -// const { addItemToOrder } = await shopClient.query< -// AddItemToOrderMutation, -// AddItemToOrderMutationVariables -// >(ADD_ITEM_TO_ORDER, { -// productVariantId: 'T_1', -// quantity: 2, -// }); -// -// expect(CustomMoneyStrategy.transformerFromSpy).toHaveBeenCalledTimes(2); -// }); -// });