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:
Daniel Lockyer 2023-12-13 09:52:09 +01:00 committed by Daniel Lockyer
parent 286194d61a
commit 20b0890a02
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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}});