mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Cleaned up duplicate await
- noticed whilst bouncing around the codebase - shouldn't change anything but it gets rid of some tsserver warnings
This commit is contained in:
parent
286194d61a
commit
20b0890a02
2 changed files with 5 additions and 5 deletions
|
@ -651,7 +651,7 @@ describe('Comments API', function () {
|
|||
});
|
||||
|
||||
it('Can edit a comment on a post', async function () {
|
||||
const {body} = await await membersAgent
|
||||
const {body} = await membersAgent
|
||||
.put(`/api/comments/${commentId}`)
|
||||
.body({comments: [{
|
||||
html: 'Updated comment'
|
||||
|
|
|
@ -12,7 +12,7 @@ describe('Site Public Settings', function () {
|
|||
});
|
||||
|
||||
afterEach(async function () {
|
||||
await await models.Settings.edit({
|
||||
await models.Settings.edit({
|
||||
key: 'members_signup_access',
|
||||
value: 'all'
|
||||
}, {context: {internal: true}});
|
||||
|
@ -34,7 +34,7 @@ describe('Site Public Settings', function () {
|
|||
});
|
||||
|
||||
it('Sets allow_external_signup to false when members are invite only', async function () {
|
||||
await await models.Settings.edit({
|
||||
await models.Settings.edit({
|
||||
key: 'members_signup_access',
|
||||
value: 'invite'
|
||||
}, {context: {internal: true}});
|
||||
|
@ -58,12 +58,12 @@ describe('Site Public Settings', function () {
|
|||
.get('/api/site');
|
||||
assert.equal(initialBody.site.allow_external_signup, true, 'This test requires the initial state to allow external signups');
|
||||
|
||||
await await models.Settings.edit({
|
||||
await models.Settings.edit({
|
||||
key: 'portal_signup_checkbox_required',
|
||||
value: true
|
||||
}, {context: {internal: true}});
|
||||
|
||||
await await models.Settings.edit({
|
||||
await models.Settings.edit({
|
||||
key: 'portal_signup_terms_html',
|
||||
value: 'I agree to the terms and conditions'
|
||||
}, {context: {internal: true}});
|
||||
|
|
Loading…
Add table
Reference in a new issue