mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Add test for trying to get strategy that dose not exist
This commit is contained in:
		
							parent
							
								
									8def1481ea
								
							
						
					
					
						commit
						e7d1740e38
					
				@ -30,7 +30,7 @@ describe('The features api', function () {
 | 
			
		||||
 | 
			
		||||
    it('cant get feature that dose not exist', function (done) {
 | 
			
		||||
        request
 | 
			
		||||
            .get('/features/myFeature')
 | 
			
		||||
            .get('/features/myfeature')
 | 
			
		||||
            .expect('Content-Type', /json/)
 | 
			
		||||
            .expect(404, done);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,13 @@ describe('The strategy api', function () {
 | 
			
		||||
            .expect(200, done);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('cant get a strategy by name that dose not exist', function (done) {
 | 
			
		||||
        request
 | 
			
		||||
            .get('/strategies/mystrategy')
 | 
			
		||||
            .expect('Content-Type', /json/)
 | 
			
		||||
            .expect(404, done);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('creates a new strategy', function (done) {
 | 
			
		||||
        request
 | 
			
		||||
            .post('/strategies')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user