diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-02-23 14:13:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 14:13:46 +0900 |
| commit | 30fe0726069a90fe1ced88a8e4fbdec19fe13078 (patch) | |
| tree | 0b3ef207beaf9e7cee73f83bae43af0c685e68cf | |
| parent | refactor(backend): `Array.prototype.filter`での非null確認では`isNotNul... (diff) | |
| download | misskey-30fe0726069a90fe1ced88a8e4fbdec19fe13078.tar.gz misskey-30fe0726069a90fe1ced88a8e4fbdec19fe13078.tar.bz2 misskey-30fe0726069a90fe1ced88a8e4fbdec19fe13078.zip | |
fix(test): Chromaticが落ちているのを一部修正? (#13435)
* fix(test): Chromaticが落ちているのを修正?
* いらん変更をけす
* 未来過ぎた
| -rw-r--r-- | packages/frontend/src/components/global/MkTime.stories.impl.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/components/global/MkTime.stories.impl.ts b/packages/frontend/src/components/global/MkTime.stories.impl.ts index 2b4b1485fd..8ddf8e213a 100644 --- a/packages/frontend/src/components/global/MkTime.stories.impl.ts +++ b/packages/frontend/src/components/global/MkTime.stories.impl.ts @@ -10,7 +10,7 @@ import MkTime from './MkTime.vue'; import { i18n } from '@/i18n.js'; import { dateTimeFormat } from '@/scripts/intl-const.js'; const now = new Date('2023-04-01T00:00:00.000Z'); -const future = new Date(8640000000000000); +const future = new Date('3000-04-01T00:00:00.000Z'); const oneHourAgo = new Date(now.getTime() - 3600000); const oneDayAgo = new Date(now.getTime() - 86400000); const oneWeekAgo = new Date(now.getTime() - 604800000); @@ -49,11 +49,12 @@ export const Empty = { export const RelativeFuture = { ...Empty, async play({ canvasElement }) { - await expect(canvasElement).toHaveTextContent(i18n.ts._ago.future); + await expect(canvasElement).toHaveTextContent(i18n.tsx._timeIn.years({ n: 977 })); }, args: { ...Empty.args, time: future, + origin: now, }, } satisfies StoryObj<typeof MkTime>; export const AbsoluteFuture = { |