Setting page (#5)
* Switched to eslint.config.ts and demoted @typescript-eslint/no-unused-vars to warning * Created /settings route, associated component and modified tests for routes * Added tests for SettingsView.vue * Added jiti library needed for linting * Refactored routes' tests. * Refactoring to reduce code duplication
This commit is contained in:
parent
304d5188b8
commit
a3177f0dd7
9 changed files with 234 additions and 206 deletions
10
tests/views/SettingsView.spec.ts
Normal file
10
tests/views/SettingsView.spec.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
import { mount, VueWrapper } from "@vue/test-utils";
|
||||
import SettingView from "~/views/SettingView.vue";
|
||||
|
||||
describe("SettingView.vue", () => {
|
||||
const wrapper: VueWrapper = mount(SettingView, {});
|
||||
it("renders without crashing", () => {
|
||||
expect(wrapper.exists()).toBe(true);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue