もはや明示的な型の指定は必要ない

This commit is contained in:
Kisaragi Marine 2024-07-09 19:34:09 +09:00
parent e4bb517f5c
commit fb69649f79
No known key found for this signature in database
GPG Key ID: C6631564CD2110E4
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ describe('Note', () => {
assert.strictEqual(res.status, 200); assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true); assert.strictEqual(Array.isArray(res.body), true);
const myNote = res.body.find((note: { id: string; files: { id: string }[] }) => note.id === createdNote.body.createdNote.id); const myNote = res.body.find(note => note.id === createdNote.body.createdNote.id);
assert.ok(myNote); assert.ok(myNote);
assert.ok(myNote.files); assert.ok(myNote.files);
assert.strictEqual(myNote.files.length, 1); assert.strictEqual(myNote.files.length, 1);