mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-03-13 12:28:26 +01:00
もはや明示的な型の指定は必要ない
This commit is contained in:
parent
e4bb517f5c
commit
fb69649f79
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ describe('Note', () => {
|
|||
|
||||
assert.strictEqual(res.status, 200);
|
||||
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.files);
|
||||
assert.strictEqual(myNote.files.length, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue