tweak test
This commit is contained in:
parent
5772de2a62
commit
e88dbad3cf
1 changed files with 1 additions and 1 deletions
|
@ -720,7 +720,7 @@ describe('クリップ', () => {
|
||||||
test('を追加できる。', async () => {
|
test('を追加できる。', async () => {
|
||||||
await addNote({ clipId: aliceClip.id, noteId: aliceNote.id });
|
await addNote({ clipId: aliceClip.id, noteId: aliceNote.id });
|
||||||
const res = await show({ clipId: aliceClip.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]);
|
assert.deepStrictEqual((await notes({ clipId: aliceClip.id })).map(x => x.id), [aliceNote.id]);
|
||||||
|
|
||||||
// 他人の非公開ノートも突っ込める
|
// 他人の非公開ノートも突っ込める
|
||||||
|
|
Loading…
Reference in a new issue