Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -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 ButtonFilled from '@/components/ButtonFilled.vue';
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import ButtonFilled from "@/components/ButtonFilled.vue";
|
||||
|
||||
describe('ButtonFilled', () => {
|
||||
it('renders button text', () => {
|
||||
describe("ButtonFilled", () => {
|
||||
it("renders button text", () => {
|
||||
const wrapper = mount(ButtonFilled, {
|
||||
props: { buttonText: 'Save' },
|
||||
props: { buttonText: "Save" },
|
||||
});
|
||||
expect(wrapper.text()).toBe('Save');
|
||||
expect(wrapper.text()).toBe("Save");
|
||||
});
|
||||
|
||||
it('has filled background class', () => {
|
||||
it("has filled background class", () => {
|
||||
const wrapper = mount(ButtonFilled, {
|
||||
props: { buttonText: 'Save' },
|
||||
props: { buttonText: "Save" },
|
||||
});
|
||||
expect(wrapper.find('button').exists()).toBe(true);
|
||||
expect(wrapper.find("button").exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('adds ring on mousedown and removes on mouseup', async () => {
|
||||
it("adds ring on mousedown and removes on mouseup", async () => {
|
||||
const wrapper = mount(ButtonFilled, {
|
||||
props: { buttonText: 'Test' },
|
||||
props: { buttonText: "Test" },
|
||||
});
|
||||
await wrapper.trigger('mousedown');
|
||||
expect(wrapper.classes()).toContain('ring');
|
||||
await wrapper.trigger('mouseup');
|
||||
expect(wrapper.classes()).not.toContain('ring');
|
||||
await wrapper.trigger("mousedown");
|
||||
expect(wrapper.classes()).toContain("ring");
|
||||
await wrapper.trigger("mouseup");
|
||||
expect(wrapper.classes()).not.toContain("ring");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user