mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Add test for asking for feature that dose not exist
This commit is contained in:
		
							parent
							
								
									f2fdf4c771
								
							
						
					
					
						commit
						ee75ac2eca
					
				| @ -28,6 +28,13 @@ describe('The features api', function () { | |||||||
|             .expect(200, done); |             .expect(200, done); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|  |     it('cant get feature that dose not exist', function (done) { | ||||||
|  |         request | ||||||
|  |             .get('/features/myFeature') | ||||||
|  |             .expect('Content-Type', /json/) | ||||||
|  |             .expect(404, done); | ||||||
|  |     }); | ||||||
|  | 
 | ||||||
|     it('creates new feature toggle', function (done) { |     it('creates new feature toggle', function (done) { | ||||||
|         request |         request | ||||||
|             .post('/features') |             .post('/features') | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user