Skip to content

Commit

Permalink
chore(core): Tidy up e2e test file
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 21, 2023
1 parent a09c2b2 commit fc70230
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions packages/core/e2e/money-strategy.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// });
// });

0 comments on commit fc70230

Please sign in to comment.