Skip to content

Commit

Permalink
remove file suffix in import
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskirchenj committed Feb 18, 2024
1 parent 6f4be4b commit 3e1a558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/shared/composables/useApi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import apiClient from '@/plugins/axios';
import {ErrorState, useErrorService} from "@/shared/composables/errorService.ts";
import {ErrorState, useErrorService} from "@/shared/composables/errorService";
import {useToastService} from "@/shared/composables/toastService";

const useApi = () => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/test/shared/errorService.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useErrorService} from '@/shared/composables/errorService';
import {useToastService} from "@/shared/composables/toastService.ts";
import {useToastService} from "@/shared/composables/toastService";
import {expect, it, vi} from "vitest";

// create a mock for the toastService
Expand All @@ -10,7 +10,7 @@ const mockedToastService = vi.hoisted(() => {
}),};
});
// mock the actual toastService composable using above mock
vi.mock('@/shared/composables/toastService.ts', () => {
vi.mock('@/shared/composables/toastService', () => {
return {
useToastService: mockedToastService.useToastService,};
});
Expand Down

0 comments on commit 3e1a558

Please sign in to comment.