diff --git a/test/featureApiSpec.js b/test/featureApiSpec.js index 1c678ba76d..931eba6bf5 100644 --- a/test/featureApiSpec.js +++ b/test/featureApiSpec.js @@ -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); }); diff --git a/test/strategyApiSpec.js b/test/strategyApiSpec.js index 579e897448..65a9f28d0e 100644 --- a/test/strategyApiSpec.js +++ b/test/strategyApiSpec.js @@ -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')