mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Add test for /strategies/:name 403 if strategy exists.
This commit is contained in:
		
							parent
							
								
									41964de9bf
								
							
						
					
					
						commit
						63b3c56cc5
					
				@ -36,5 +36,13 @@ describe('The strategy api', function () {
 | 
			
		||||
            .expect(400, done);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('refuses to create a strategy with an existing name', function (done) {
 | 
			
		||||
        request
 | 
			
		||||
            .post('/strategies')
 | 
			
		||||
            .send({name: 'default'})
 | 
			
		||||
            .set('Content-Type', 'application/json')
 | 
			
		||||
            .expect(403, done);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
});
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user