diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-01 15:56:57 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-01 15:56:57 +0900 |
| commit | e88dbad3cfb9e98171c6bde51c7757a7798ef90a (patch) | |
| tree | ea7a6a62e0abf0cfc3efff558ff025b92be470b9 /packages | |
| parent | fix vitest (diff) | |
| download | misskey-e88dbad3cfb9e98171c6bde51c7757a7798ef90a.tar.gz misskey-e88dbad3cfb9e98171c6bde51c7757a7798ef90a.tar.bz2 misskey-e88dbad3cfb9e98171c6bde51c7757a7798ef90a.zip | |
tweak test
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/backend/test/e2e/clips.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/test/e2e/clips.ts b/packages/backend/test/e2e/clips.ts index dfdc044caa..49092fba63 100644 --- a/packages/backend/test/e2e/clips.ts +++ b/packages/backend/test/e2e/clips.ts @@ -720,7 +720,7 @@ describe('クリップ', () => { test('を追加できる。', async () => { await addNote({ clipId: aliceClip.id, noteId: aliceNote.id }); const res = await show({ clipId: aliceClip.id }); - assert.strictEqual(res.lastClippedAt, new Date(res.lastClippedAt ?? '').toISOString()); + assert.strictEqual(res.lastClippedAt, res.lastClippedAt ? new Date(res.lastClippedAt).toISOString() : null); assert.deepStrictEqual((await notes({ clipId: aliceClip.id })).map(x => x.id), [aliceNote.id]); // 他人の非公開ノートも突っ込める |