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:
parent
356d6ea031
commit
ea099af854
1 changed files with 0 additions and 11 deletions
|
@ -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'}]}, {});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue