test
This commit is contained in:
		
							parent
							
								
									adb42fe60b
								
							
						
					
					
						commit
						6d3542465d
					
				
					 1 changed files with 30 additions and 18 deletions
				
			
		
							
								
								
									
										14
									
								
								test/api.js
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								test/api.js
									
										
									
									
									
								
							|  | @ -124,7 +124,8 @@ describe('API', () => { | |||
| 		})); | ||||
| 	}); | ||||
| 
 | ||||
| 	it('i/update', () => new Promise(async (done) => { | ||||
| 	describe('i/update', () => { | ||||
| 		it('アカウント設定を更新できる', () => new Promise(async (done) => { | ||||
| 			const me = await insertSakurako(); | ||||
| 
 | ||||
| 			const myName = '大室櫻子'; | ||||
|  | @ -145,6 +146,17 @@ describe('API', () => { | |||
| 			}); | ||||
| 		})); | ||||
| 
 | ||||
| 		it('不正な誕生日の形式で怒られる', () => new Promise(async (done) => { | ||||
| 			const me = await insertSakurako(); | ||||
| 			request('/i/update', { | ||||
| 				birthday: '2000/09/07' | ||||
| 			}, me).then(res => { | ||||
| 				res.should.have.status(400); | ||||
| 				done(); | ||||
| 			}); | ||||
| 		})); | ||||
| 	}); | ||||
| 
 | ||||
| 	describe('users/show', () => { | ||||
| 		it('ユーザーが取得できる', () => new Promise(async (done) => { | ||||
| 			const me = await insertSakurako(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue