Skip to content

Commit

Permalink
test(core): Clean up order interceptor e2e test file
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 25, 2024
1 parent 7ed113c commit 3d05446
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/core/e2e/order-interceptor.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import {
WillAddItemToOrderInput,
WillAdjustOrderLineInput,
} from '@vendure/core';
import { ADJUST_ORDER_LINE } from '@vendure/payments-plugin/e2e/graphql/shop-queries';
import { createErrorResultGuard, createTestEnvironment, ErrorResultGuard } from '@vendure/testing';
import { mock } from 'node:test';
import path from 'path';
import { afterAll, beforeAll, it, describe, expect, vi } from 'vitest';
import { initialData } from '../../../e2e-common/e2e-initial-data';
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';

import { initialData } from '../../../e2e-common/e2e-initial-data';
import { testConfig } from '../../../e2e-common/test-config';

import * as CodegenShop from './graphql/generated-e2e-shop-types';
import {
ADD_ITEM_TO_ORDER,
Expand Down Expand Up @@ -107,7 +106,6 @@ describe('Order interceptor', () => {
beforeAll(async () => {
await server.init({
initialData,

productsCsvPath: path.join(__dirname, 'fixtures/e2e-products-full.csv'),
customerCount: 1,
});
Expand Down Expand Up @@ -210,7 +208,7 @@ describe('Order interceptor', () => {
const { adjustOrderLine } = await shopClient.query<
CodegenShop.AdjustItemQuantityMutation,
CodegenShop.AdjustItemQuantityMutationVariables
>(ADJUST_ORDER_LINE, {
>(ADJUST_ITEM_QUANTITY, {
orderLineId: 'T_2',
quantity: 1,
});
Expand Down

0 comments on commit 3d05446

Please sign in to comment.