Files
Sylius-VSF-REST-SDK/packages/sdk/__tests__/integration/exampleMethod.integration.spec.ts
T
2023-07-10 10:17:17 +07:00

14 lines
389 B
TypeScript

import { sdk } from './__config__/sdk.config';
describe('[Integration Boilerplate SDK][integration] exampleMethod', () => {
it('makes a request to the middleware', async () => {
const EXPECTED_RESPONSE = {"data": "Hello, Vue Storefront Integrator!"};
const res = await sdk.boilerplate.exampleMethod({
id: 1,
});
expect(res).toEqual(EXPECTED_RESPONSE);
});
});