1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

shoulda woulda

This commit is contained in:
sveisvei 2017-06-29 08:35:05 +02:00
parent 942afd74a3
commit 0e544a27e2

View File

@ -29,7 +29,7 @@ test.beforeEach(() => {
logger.setLevel('FATAL');
});
test('should add version numbers for /stategies', t => {
test('add version numbers for /stategies', t => {
t.plan(1);
const { request, base } = getSetup();
@ -42,7 +42,7 @@ test('should add version numbers for /stategies', t => {
});
});
test('should require a name when creating a new stratey', t => {
test('require a name when creating a new stratey', t => {
t.plan(1);
const { request, base } = getSetup();
@ -55,7 +55,7 @@ test('should require a name when creating a new stratey', t => {
});
});
test('should require parameters array when creating a new stratey', t => {
test('require parameters array when creating a new stratey', t => {
t.plan(1);
const { request, base } = getSetup();
@ -68,7 +68,7 @@ test('should require parameters array when creating a new stratey', t => {
});
});
test('should create a new stratey with empty parameters', t => {
test('create a new stratey with empty parameters', t => {
t.plan(0);
const { request, base } = getSetup();
@ -78,7 +78,7 @@ test('should create a new stratey with empty parameters', t => {
.expect(201);
});
test('should not be possible to override name', t => {
test('not be possible to override name', t => {
t.plan(0);
const { request, base, strategyStore } = getSetup();
strategyStore.addStrategy({ name: 'Testing', parameters: [] });
@ -89,7 +89,7 @@ test('should not be possible to override name', t => {
.expect(403);
});
test('should update strategy', t => {
test('update strategy', t => {
t.plan(0);
const name = 'AnotherStrat';
const { request, base, strategyStore } = getSetup();
@ -101,7 +101,7 @@ test('should update strategy', t => {
.expect(200);
});
test('should not update uknown strategy', t => {
test('not update uknown strategy', t => {
t.plan(0);
const name = 'UnknownStrat';
const { request, base } = getSetup();
@ -112,7 +112,7 @@ test('should not update uknown strategy', t => {
.expect(404);
});
test('should validate format when updating strategy', t => {
test('validate format when updating strategy', t => {
t.plan(0);
const name = 'AnotherStrat';
const { request, base, strategyStore } = getSetup();