Skip to content

Commit 2bc959a

Browse files
committed
Update snapshots
1 parent 0d5a9bb commit 2bc959a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/rtk-query-codegen-openapi/test/__snapshots__/generateEndpoints.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,8 +2524,8 @@ export type ExampleSchemaWrite = {
25242524
"
25252525
`;
25262526

2527-
exports[`query parameters parameters overrided in swagger should also be overrided in the code 1`] = `
2528-
import { api } from './fixtures/emptyApi';
2527+
exports[`query parameters > parameters overridden in swagger should also be overridden in the code 1`] = `
2528+
"import { api } from "./fixtures/emptyApi";
25292529
const injectedRtkApi = api.injectEndpoints({
25302530
endpoints: (build) => ({
25312531
getUsersById: build.query<GetUsersByIdApiResponse, GetUsersByIdApiArg>({
@@ -2539,7 +2539,7 @@ export type GetUsersByIdApiResponse = unknown;
25392539
export type GetUsersByIdApiArg = {
25402540
id: number;
25412541
};
2542-
2542+
"
25432543
`;
25442544

25452545
exports[`should use brackets in a querystring urls arg, when the arg contains full stops 1`] = `

packages/rtk-query-codegen-openapi/test/generateEndpoints.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ describe('openapi spec', () => {
565565
});
566566

567567
describe('query parameters', () => {
568-
it('parameters overrided in swagger should also be overrided in the code', async () => {
568+
it('parameters overridden in swagger should also be overridden in the code', async () => {
569569
const api = await generateEndpoints({
570-
schemaFile: './fixtures/parameterOverride.yaml',
570+
schemaFile: './test/fixtures/parameterOverride.yaml',
571571
apiFile: './fixtures/emptyApi.ts',
572572
});
573573
expect(api).toMatchSnapshot();

0 commit comments

Comments
 (0)