1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Add test for asking for feature that dose not exist

This commit is contained in:
andsandv 2015-02-10 17:30:18 +01:00 committed by Ivar Conradi Østhus
parent 00648bce16
commit 3d35942958

View File

@ -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')