Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
// Authors:
|
||||
// imacat.yang@dsp.im (imacat), 2026/03/05
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { setActivePinia, createPinia } from 'pinia';
|
||||
import { useConformanceInputStore } from '@/stores/conformanceInput';
|
||||
import { describe, it, expect, beforeEach } from "vitest";
|
||||
import { setActivePinia, createPinia } from "pinia";
|
||||
import { useConformanceInputStore } from "@/stores/conformanceInput";
|
||||
|
||||
describe('conformanceInputStore', () => {
|
||||
describe("conformanceInputStore", () => {
|
||||
let store;
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -15,23 +15,23 @@ describe('conformanceInputStore', () => {
|
||||
store = useConformanceInputStore();
|
||||
});
|
||||
|
||||
it('has correct default state', () => {
|
||||
it("has correct default state", () => {
|
||||
expect(store.inputDataToSave.inputStart).toBeNull();
|
||||
expect(store.activityRadioData.task).toEqual(['', '']);
|
||||
expect(store.activityRadioData.task).toEqual(["", ""]);
|
||||
});
|
||||
|
||||
it('setActivityRadioStartEndData sets From', () => {
|
||||
store.setActivityRadioStartEndData('taskA', 'From');
|
||||
expect(store.activityRadioData.task[0]).toBe('taskA');
|
||||
it("setActivityRadioStartEndData sets From", () => {
|
||||
store.setActivityRadioStartEndData("taskA", "From");
|
||||
expect(store.activityRadioData.task[0]).toBe("taskA");
|
||||
});
|
||||
|
||||
it('setActivityRadioStartEndData sets To', () => {
|
||||
store.setActivityRadioStartEndData('taskB', 'To');
|
||||
expect(store.activityRadioData.task[1]).toBe('taskB');
|
||||
it("setActivityRadioStartEndData sets To", () => {
|
||||
store.setActivityRadioStartEndData("taskB", "To");
|
||||
expect(store.activityRadioData.task[1]).toBe("taskB");
|
||||
});
|
||||
|
||||
it('setActivityRadioStartEndData ignores unknown', () => {
|
||||
store.setActivityRadioStartEndData('taskC', 'Unknown');
|
||||
expect(store.activityRadioData.task).toEqual(['', '']);
|
||||
it("setActivityRadioStartEndData ignores unknown", () => {
|
||||
store.setActivityRadioStartEndData("taskC", "Unknown");
|
||||
expect(store.activityRadioData.task).toEqual(["", ""]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user