mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 05:24:13 +00:00 
			
		
		
		
	[Test] Fix test
This commit is contained in:
		
							parent
							
								
									c55e5114ac
								
							
						
					
					
						commit
						88e5a18509
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -353,7 +353,7 @@ describe('API', () => { | ||||||
| 			request('/posts/likes/create', { | 			request('/posts/likes/create', { | ||||||
| 				post_id: himaPost._id.toString() | 				post_id: himaPost._id.toString() | ||||||
| 			}, me).then(res => { | 			}, me).then(res => { | ||||||
| 				res.should.have.status(200); | 				res.should.have.status(204); | ||||||
| 				done(); | 				done(); | ||||||
| 			}); | 			}); | ||||||
| 		})); | 		})); | ||||||
|  | @ -380,12 +380,12 @@ describe('API', () => { | ||||||
| 				text: 'ひま' | 				text: 'ひま' | ||||||
| 			}); | 			}); | ||||||
| 
 | 
 | ||||||
|  | 			const me = await insertSakurako(); | ||||||
| 			await db.get('likes').insert({ | 			await db.get('likes').insert({ | ||||||
| 				user_id: me._id, | 				user_id: me._id, | ||||||
| 				post_id: himaPost._id | 				post_id: himaPost._id | ||||||
| 			}); | 			}); | ||||||
| 
 | 
 | ||||||
| 			const me = await insertSakurako(); |  | ||||||
| 			request('/posts/likes/create', { | 			request('/posts/likes/create', { | ||||||
| 				post_id: himaPost._id.toString() | 				post_id: himaPost._id.toString() | ||||||
| 			}, me).then(res => { | 			}, me).then(res => { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue