Fix types

This commit is contained in:
Acid Chicken (硫酸鶏) 2019-07-01 23:37:21 +09:00
parent 609caf2c4b
commit 181f911ec6
No known key found for this signature in database
GPG Key ID: 5388F56C75B677A1

View File

@ -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<string, unknown>) => note.id === jpgNote.id), true);
assert.strictEqual(res.body.some((note: Record<string, unknown>) => 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<string, unknown>) => note.id === jpgNote.id), true);
assert.strictEqual(res.body.some((note: Record<string, unknown>) => note.id === pngNote.id), true);
assert.strictEqual(res.body.some((note: Record<string, unknown>) => note.id === jpgPngNote.id), true);
}));
});