Apply repository-wide ESLint auto-fix formatting pass

Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
2026-03-08 12:11:57 +08:00
parent 7c48faaa3d
commit 847904c49b
172 changed files with 13629 additions and 9154 deletions

View File

@@ -3,32 +3,32 @@
// Authors:
// imacat.yang@dsp.im (imacat), 2026/03/05
import { describe, it, expect } from 'vitest';
import { mount } from '@vue/test-utils';
import Button from '@/components/Button.vue';
import { describe, it, expect } from "vitest";
import { mount } from "@vue/test-utils";
import Button from "@/components/Button.vue";
describe('Button', () => {
it('renders button text', () => {
describe("Button", () => {
it("renders button text", () => {
const wrapper = mount(Button, {
props: { buttonText: 'Click Me' },
props: { buttonText: "Click Me" },
});
expect(wrapper.text()).toBe('Click Me');
expect(wrapper.text()).toBe("Click Me");
});
it('adds ring classes on mousedown', async () => {
it("adds ring classes on mousedown", async () => {
const wrapper = mount(Button, {
props: { buttonText: 'Test' },
props: { buttonText: "Test" },
});
await wrapper.trigger('mousedown');
expect(wrapper.classes()).toContain('ring');
await wrapper.trigger("mousedown");
expect(wrapper.classes()).toContain("ring");
});
it('removes ring classes on mouseup', async () => {
it("removes ring classes on mouseup", async () => {
const wrapper = mount(Button, {
props: { buttonText: 'Test' },
props: { buttonText: "Test" },
});
await wrapper.trigger('mousedown');
await wrapper.trigger('mouseup');
expect(wrapper.classes()).not.toContain('ring');
await wrapper.trigger("mousedown");
await wrapper.trigger("mouseup");
expect(wrapper.classes()).not.toContain("ring");
});
});