0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

💄 Remove duplicate test assertion (#7233)

no issue

One test assertion was a duplicate.
This commit is contained in:
Aileen Nowak 2016-08-19 16:38:56 +02:00 committed by Katharina Irrgang
parent 356d6ea031
commit ea099af854

View file

@ -178,17 +178,6 @@ describe('Settings API', function () {
});
});
it('set activeTimezone: unknown timezone', function () {
return callApiWithContext(defaultContext, 'edit', {settings: [{key: 'activeTimezone', value: 'MFG'}]}, {})
.then(function () {
throw new Error('We expect that the activeTimezone cannot be stored');
}).catch(function (errors) {
should.exist(errors);
errors.length.should.eql(1);
errors[0].errorType.should.eql('ValidationError');
});
});
it('set activeTimezone: known timezone', function () {
return callApiWithContext(defaultContext, 'edit', {settings: [{key: 'activeTimezone', value: 'Etc/UTC'}]}, {});
});