feat: 初始提交
This commit is contained in:
15
tests/web/routes/settings.test.tsx
Normal file
15
tests/web/routes/settings.test.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { screen } from "@testing-library/react";
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { createElement } from "react";
|
||||
|
||||
import { SettingsPage } from "../../../src/web/pages/settings";
|
||||
import { renderWithProviders } from "../test-utils";
|
||||
|
||||
describe("SettingsPage", () => {
|
||||
test("渲染系统设置页面", () => {
|
||||
renderWithProviders(createElement(SettingsPage));
|
||||
|
||||
expect(screen.getByText("系统设置")).not.toBeNull();
|
||||
expect(screen.getByText("页面建设中...")).not.toBeNull();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user