From 4e54c461ffdb62f8117ff07af5ab75882ad6f2aa Mon Sep 17 00:00:00 2001 From: andsandv Date: Tue, 10 Feb 2015 18:28:17 +0100 Subject: [PATCH] Add test for trying to get strategy that dose not exist --- test/featureApiSpec.js | 2 +- test/strategyApiSpec.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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')