Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vucis committed May 20, 2024
1 parent 03ab201 commit 163b73e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
9 changes: 4 additions & 5 deletions frontend/tests/unit/header.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {expect, vitest, test} from 'vitest';
import {Me} from '../../src/types/me.ts';
import { vitest, test } from "vitest";

vitest.mock('react-i18next', () => ({
useTranslation: () => ({t: (key: any) => key})
vitest.mock("react-i18next", () => ({
useTranslation: () => ({ t: (key: any) => key }),

Check failure on line 4 in frontend/tests/unit/header.test.tsx

View workflow job for this annotation

GitHub Actions / Frontend-tests

Unexpected any. Specify a different type
}));

test.todo("Header test")
test.todo("Header test");
8 changes: 4 additions & 4 deletions frontend/tests/unit/homepage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {expect, vitest, test} from 'vitest';
import { vitest, test } from "vitest";

vitest.mock('react-i18next', () => ({
useTranslation: () => ({t: (key: any) => key})
vitest.mock("react-i18next", () => ({
useTranslation: () => ({ t: (key: any) => key }),

Check failure on line 4 in frontend/tests/unit/homepage.test.tsx

View workflow job for this annotation

GitHub Actions / Frontend-tests

Unexpected any. Specify a different type
}));

test.todo("Homepage test")
test.todo("Homepage test");
9 changes: 4 additions & 5 deletions frontend/tests/unit/type-tests/me.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { assertType, describe, expectTypeOf, test } from 'vitest';
import {Me} from '../../../src/types/me.ts';
import { describe, test } from "vitest";

describe('Me is properly defined', () => {
test.todo('Me.role is string')
})
describe("Me is properly defined", () => {
test.todo("Me.role is string");
});

0 comments on commit 163b73e

Please sign in to comment.