Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Aug 30, 2024
1 parent 0d5a9bb commit 2bc959a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2524,8 +2524,8 @@ export type ExampleSchemaWrite = {
"
`;

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

"
`;

exports[`should use brackets in a querystring urls arg, when the arg contains full stops 1`] = `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,9 @@ describe('openapi spec', () => {
});

describe('query parameters', () => {
it('parameters overrided in swagger should also be overrided in the code', async () => {
it('parameters overridden in swagger should also be overridden in the code', async () => {
const api = await generateEndpoints({
schemaFile: './fixtures/parameterOverride.yaml',
schemaFile: './test/fixtures/parameterOverride.yaml',
apiFile: './fixtures/emptyApi.ts',
});
expect(api).toMatchSnapshot();
Expand Down

0 comments on commit 2bc959a

Please sign in to comment.