From ee75ac2eca83883a16ba053b9cb446fa178ff66f Mon Sep 17 00:00:00 2001 From: andsandv Date: Tue, 10 Feb 2015 17:30:18 +0100 Subject: [PATCH] Add test for asking for feature that dose not exist --- test/featureApiSpec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/featureApiSpec.js b/test/featureApiSpec.js index d6c284176e..1c678ba76d 100644 --- a/test/featureApiSpec.js +++ b/test/featureApiSpec.js @@ -28,6 +28,13 @@ describe('The features api', function () { .expect(200, done); }); + it('cant get feature that dose not exist', function (done) { + request + .get('/features/myFeature') + .expect('Content-Type', /json/) + .expect(404, done); + }); + it('creates new feature toggle', function (done) { request .post('/features')