mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Add test for /strategies/:name 403 if strategy exists.
This commit is contained in:
parent
459cb30bad
commit
74df1aa6ec
@ -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