もはや明示的な型の指定は必要ない
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(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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue