Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
// Authors:
|
||||
// imacat.yang@dsp.im (imacat), 2026/03/05
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { setActivePinia, createPinia } from 'pinia';
|
||||
import { useModalStore } from '@/stores/modal';
|
||||
import { MODAL_ACCT_INFO, MODAL_DELETE } from '@/constants/constants.js';
|
||||
import { describe, it, expect, beforeEach } from "vitest";
|
||||
import { setActivePinia, createPinia } from "pinia";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { MODAL_ACCT_INFO, MODAL_DELETE } from "@/constants/constants.js";
|
||||
|
||||
describe('modalStore', () => {
|
||||
describe("modalStore", () => {
|
||||
let store;
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -16,18 +16,18 @@ describe('modalStore', () => {
|
||||
store = useModalStore();
|
||||
});
|
||||
|
||||
it('has default state', () => {
|
||||
it("has default state", () => {
|
||||
expect(store.isModalOpen).toBe(false);
|
||||
expect(store.whichModal).toBe(MODAL_ACCT_INFO);
|
||||
});
|
||||
|
||||
it('openModal sets isModalOpen and whichModal', () => {
|
||||
it("openModal sets isModalOpen and whichModal", () => {
|
||||
store.openModal(MODAL_DELETE);
|
||||
expect(store.isModalOpen).toBe(true);
|
||||
expect(store.whichModal).toBe(MODAL_DELETE);
|
||||
});
|
||||
|
||||
it('closeModal sets isModalOpen to false', async () => {
|
||||
it("closeModal sets isModalOpen to false", async () => {
|
||||
store.openModal(MODAL_DELETE);
|
||||
await store.closeModal();
|
||||
expect(store.isModalOpen).toBe(false);
|
||||
|
||||
Reference in New Issue
Block a user