Update user-notes.ts
This commit is contained in:
		@@ -38,24 +38,10 @@ describe('users/notes', () => {
 | 
			
		||||
		await app.close();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	test('ファイルタイプ指定 (jpg)', async () => {
 | 
			
		||||
	test('withFiles', async () => {
 | 
			
		||||
		const res = await api('/users/notes', {
 | 
			
		||||
			userId: alice.id,
 | 
			
		||||
			fileType: ['image/jpeg'],
 | 
			
		||||
		}, alice);
 | 
			
		||||
 | 
			
		||||
		assert.strictEqual(res.status, 200);
 | 
			
		||||
		assert.strictEqual(Array.isArray(res.body), true);
 | 
			
		||||
		assert.strictEqual(res.body.length, 2);
 | 
			
		||||
		assert.strictEqual(res.body.some((note: any) => note.id === jpgNote.id), true);
 | 
			
		||||
		assert.strictEqual(res.body.some((note: any) => note.id === jpgPngNote.id), true);
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	test('ファイルタイプ指定 (jpg or png)', async () => {
 | 
			
		||||
		const res = await api('/users/notes', {
 | 
			
		||||
			userId: alice.id,
 | 
			
		||||
			fileType: ['image/jpeg', 'image/png'],
 | 
			
		||||
			withFiles: true,
 | 
			
		||||
		}, alice);
 | 
			
		||||
 | 
			
		||||
		assert.strictEqual(res.status, 200);
 | 
			
		||||
@@ -65,5 +51,4 @@ describe('users/notes', () => {
 | 
			
		||||
		assert.strictEqual(res.body.some((note: any) => note.id === pngNote.id), true);
 | 
			
		||||
		assert.strictEqual(res.body.some((note: any) => note.id === jpgPngNote.id), true);
 | 
			
		||||
	});
 | 
			
		||||
	*/
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user