Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -3,29 +3,29 @@
|
||||
// Authors:
|
||||
// imacat.yang@dsp.im (imacat), 2026/03/05
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { mount } from '@vue/test-utils';
|
||||
import Badge from '@/components/Badge.vue';
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import Badge from "@/components/Badge.vue";
|
||||
|
||||
describe('Badge', () => {
|
||||
it('renders display text', () => {
|
||||
describe("Badge", () => {
|
||||
it("renders display text", () => {
|
||||
const wrapper = mount(Badge, {
|
||||
props: { isActivated: true, displayText: 'Active' },
|
||||
props: { isActivated: true, displayText: "Active" },
|
||||
});
|
||||
expect(wrapper.text()).toBe('Active');
|
||||
expect(wrapper.text()).toBe("Active");
|
||||
});
|
||||
|
||||
it('has activated class when isActivated is true', () => {
|
||||
it("has activated class when isActivated is true", () => {
|
||||
const wrapper = mount(Badge, {
|
||||
props: { isActivated: true, displayText: 'Active' },
|
||||
props: { isActivated: true, displayText: "Active" },
|
||||
});
|
||||
expect(wrapper.classes()).toContain('badge-activated');
|
||||
expect(wrapper.classes()).toContain("badge-activated");
|
||||
});
|
||||
|
||||
it('has deactivated class when isActivated is false', () => {
|
||||
it("has deactivated class when isActivated is false", () => {
|
||||
const wrapper = mount(Badge, {
|
||||
props: { isActivated: false, displayText: 'Inactive' },
|
||||
props: { isActivated: false, displayText: "Inactive" },
|
||||
});
|
||||
expect(wrapper.classes()).toContain('badge-deactivated');
|
||||
expect(wrapper.classes()).toContain("badge-deactivated");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user