Skip to content

Commit

Permalink
fix(editor): Fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Feb 17, 2025
1 parent 174cd0a commit dc18a63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/editor-ui/src/views/CredentialsView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('CredentialsView', () => {
expect(uiStore.openModal).toHaveBeenCalledWith(CREDENTIAL_SELECT_MODAL_KEY);
});

it('should not show the modal on route if user has no scope to create credential in the project', async () => {
it('should not show the modal on the route if the user has no scope to create credential in the project', async () => {
const uiStore = mockedStore(useUIStore);
const projectsStore = mockedStore(useProjectsStore);
projectsStore.currentProject = createTestProject({ scopes: ['credential:read'] });
Expand All @@ -125,7 +125,7 @@ describe('CredentialsView', () => {
});

describe('open existing credential', () => {
it('should show modal on route param if the user has permission to read or update', async () => {
it('should show the modal on the route if the user has permission to read or update', async () => {
const uiStore = mockedStore(useUIStore);
const credentialsStore = mockedStore(useCredentialsStore);
credentialsStore.getCredentialById = vi.fn().mockImplementation(() => ({
Expand All @@ -141,7 +141,7 @@ describe('CredentialsView', () => {
expect(uiStore.openExistingCredential).toHaveBeenCalledWith('abc123');
});

it('should not show modal on route param if the user has no permission to read or update', async () => {
it('should not show the modal on the route if the user has no permission to read or update', async () => {
const uiStore = mockedStore(useUIStore);
const credentialsStore = mockedStore(useCredentialsStore);
credentialsStore.getCredentialById = vi.fn().mockImplementation(() => ({
Expand Down

0 comments on commit dc18a63

Please sign in to comment.