fixtures: Update repositories fixture based on the API generated code
This updates the type of `testingRepos` fixtures from `ApiRepositoryResponse[]` to `ApiRepositoryResponseRead[]`. The new type was added automatically after bumping @rtk-query/codegen-openapi to a higher version. The difference between the types is the uuid field which is not a part of `ApiRepositoryResponse[]`.
This commit is contained in:
parent
2ae670bf35
commit
b3fade4a5f
1 changed files with 2 additions and 1 deletions
3
src/test/fixtures/repositories.ts
vendored
3
src/test/fixtures/repositories.ts
vendored
|
|
@ -1,6 +1,7 @@
|
|||
import {
|
||||
ApiLinks,
|
||||
ApiRepositoryResponse,
|
||||
ApiRepositoryResponseRead,
|
||||
ApiResponseMetadata,
|
||||
ListRepositoriesApiArg,
|
||||
} from '../../store/contentSourcesApi';
|
||||
|
|
@ -55,7 +56,7 @@ const filterRepos = (args: repoArgs): ApiRepositoryResponse[] => {
|
|||
return repos;
|
||||
};
|
||||
|
||||
const testingRepos: ApiRepositoryResponse[] = [
|
||||
const testingRepos: ApiRepositoryResponseRead[] = [
|
||||
{
|
||||
uuid: 'dbad4dfc-1547-45f8-b5af-1d7fec0476c6',
|
||||
name: '13lk3',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue