Skip to content

Commit

Permalink
fix some typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Dec 24, 2024
1 parent 06f107b commit bc8a01d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ export const credentialFactory = Factory.extend<ICredentialsResponse>({
updatedAt() {
return '';
},
isManaged() {
return false;
},
});
1 change: 1 addition & 0 deletions packages/editor-ui/src/components/CredentialCard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const createCredential = (overrides = {}): ICredentialsResponse => ({
type: '',
name: '',
sharedWithProjects: [],
isManaged: false,
homeProject: {} as ProjectSharingData,
...overrides,
});
Expand Down
1 change: 1 addition & 0 deletions packages/editor-ui/src/components/CredentialCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const props = withDefaults(
name: '',
sharedWithProjects: [],
homeProject: {} as ProjectSharingData,
isManaged: false,
}),
readOnly: false,
},
Expand Down
4 changes: 4 additions & 0 deletions packages/editor-ui/src/views/CredentialsView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ describe('CredentialsView', () => {
type: 'test',
createdAt: '2021-05-05T00:00:00Z',
updatedAt: '2021-05-05T00:00:00Z',
isManaged: false,
},
];
const projectsStore = mockedStore(useProjectsStore);
Expand All @@ -77,13 +78,15 @@ describe('CredentialsView', () => {
createdAt: '2021-05-05T00:00:00Z',
updatedAt: '2021-05-05T00:00:00Z',
scopes: ['credential:update'],
isManaged: false,
},
{
id: '2',
name: 'test2',
type: 'test2',
createdAt: '2021-05-05T00:00:00Z',
updatedAt: '2021-05-05T00:00:00Z',
isManaged: false,
},
];
const projectsStore = mockedStore(useProjectsStore);
Expand Down Expand Up @@ -124,6 +127,7 @@ describe('CredentialsView', () => {
createdAt: '2021-05-05T00:00:00Z',
updatedAt: '2021-05-05T00:00:00Z',
scopes: ['credential:update'],
isManaged: false,
},
];
const { getByTestId } = renderComponent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ export const newCredential = (
updatedAt: faker.date.past().toISOString(),
id: faker.string.alphanumeric({ length: 16 }),
name: faker.commerce.productName(),
isManaged: false,
...opts,
});

0 comments on commit bc8a01d

Please sign in to comment.