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 { useMapCompareStore } from '@/stores/mapCompareStore';
|
||||
import { describe, it, expect, beforeEach } from "vitest";
|
||||
import { setActivePinia, createPinia } from "pinia";
|
||||
import { useMapCompareStore } from "@/stores/mapCompareStore";
|
||||
|
||||
describe('mapCompareStore', () => {
|
||||
describe("mapCompareStore", () => {
|
||||
let store;
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -15,22 +15,22 @@ describe('mapCompareStore', () => {
|
||||
store = useMapCompareStore();
|
||||
});
|
||||
|
||||
it('has correct default state', () => {
|
||||
it("has correct default state", () => {
|
||||
expect(store.routeParam).toEqual({
|
||||
primaryType: '',
|
||||
primaryId: '',
|
||||
secondaryType: '',
|
||||
secondaryId: '',
|
||||
primaryType: "",
|
||||
primaryId: "",
|
||||
secondaryType: "",
|
||||
secondaryId: "",
|
||||
});
|
||||
});
|
||||
|
||||
it('setCompareRouteParam sets all params', () => {
|
||||
store.setCompareRouteParam('log', '1', 'filter', '2');
|
||||
it("setCompareRouteParam sets all params", () => {
|
||||
store.setCompareRouteParam("log", "1", "filter", "2");
|
||||
expect(store.routeParam).toEqual({
|
||||
primaryType: 'log',
|
||||
primaryId: '1',
|
||||
secondaryType: 'filter',
|
||||
secondaryId: '2',
|
||||
primaryType: "log",
|
||||
primaryId: "1",
|
||||
secondaryType: "filter",
|
||||
secondaryId: "2",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user