mirror of
https://github.com/Unleash/unleash.git
synced 2026-09-24 19:32:17 +00:00
Add test for trying to get strategy that dose not exist
This commit is contained in:
committed by
Ivar Conradi Østhus
parent
5013a10186
commit
4e54c461ff
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user