|
|
@@ -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);
|
|
|
-// });
|
|
|
-// });
|