From 181f911ec627812b7e5714c76c126bfb19b938ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Mon, 1 Jul 2019 23:37:21 +0900 Subject: [PATCH] Fix types --- test/user-notes.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/user-notes.ts b/test/user-notes.ts index 5e457d669..0c5c550b3 100644 --- a/test/user-notes.ts +++ b/test/user-notes.ts @@ -66,8 +66,8 @@ describe('users/notes', () => { assert.strictEqual(res.status, 200); assert.strictEqual(Array.isArray(res.body), true); assert.strictEqual(res.body.length, 2); - assert.strictEqual(res.body.some(note => note.id === jpgNote.id), true); - assert.strictEqual(res.body.some(note => note.id === jpgPngNote.id), true); + assert.strictEqual(res.body.some((note: Record) => note.id === jpgNote.id), true); + assert.strictEqual(res.body.some((note: Record) => note.id === jpgPngNote.id), true); })); it('ファイルタイプ指定 (jpg or png)', async(async () => { @@ -79,8 +79,8 @@ describe('users/notes', () => { assert.strictEqual(res.status, 200); assert.strictEqual(Array.isArray(res.body), true); assert.strictEqual(res.body.length, 3); - assert.strictEqual(res.body.some(note => note.id === jpgNote.id), true); - assert.strictEqual(res.body.some(note => note.id === pngNote.id), true); - assert.strictEqual(res.body.some(note => note.id === jpgPngNote.id), true); + assert.strictEqual(res.body.some((note: Record) => note.id === jpgNote.id), true); + assert.strictEqual(res.body.some((note: Record) => note.id === pngNote.id), true); + assert.strictEqual(res.body.some((note: Record) => note.id === jpgPngNote.id), true); })); });