mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-19 10:05:38 +02:00
refactor
This commit is contained in:
@@ -2,11 +2,10 @@
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
||||
|
||||
import { expect, userEvent, waitFor, within } from '@storybook/test';
|
||||
import type { StoryObj } from '@storybook/vue3';
|
||||
import MkAd from './MkAd.vue';
|
||||
import type { StoryObj } from '@storybook/vue3';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
const common = {
|
||||
@@ -68,7 +67,7 @@ const common = {
|
||||
await expect(imgAgain).toBeInTheDocument();
|
||||
},
|
||||
args: {
|
||||
prefer: [],
|
||||
preferForms: [],
|
||||
specify: {
|
||||
id: 'someadid',
|
||||
ratio: 1,
|
||||
|
||||
@@ -87,7 +87,7 @@ router.useListener('change', ({ resolved }) => {
|
||||
const fullPath = router.getCurrentFullPath();
|
||||
|
||||
if (tabs.value.some(tab => tab.routePath === routePath && deepEqual(resolved.props, tab.props))) {
|
||||
const newTabs = [];
|
||||
const newTabs = [] as typeof tabs.value;
|
||||
for (const tab of tabs.value) {
|
||||
newTabs.push(tab);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user