diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-06-01 18:01:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 18:01:36 +0200 |
commit | 1bbd895427cd3321ec88f85b7636f8dc970227c8 (patch) | |
tree | 42fa63cbc5140700f80519204591c59421588cd8 | |
parent | 3b8fcb79d0386d315c0d76d62f97624f94c4a686 (diff) | |
parent | 0f1d1478b2daffb1e8e69f582e2774183e723667 (diff) |
Merge pull request #5695 from nextcloud/wait-for-async-test-functions
Wait for async test functions
-rw-r--r-- | src/store/participantsStore.spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/participantsStore.spec.js b/src/store/participantsStore.spec.js index e3fa1cebe..2b0386ee2 100644 --- a/src/store/participantsStore.spec.js +++ b/src/store/participantsStore.spec.js @@ -235,10 +235,10 @@ describe('participantsStore', () => { } test('promotes given user to moderator', async() => { - testPromoteModerator(PARTICIPANT.TYPE.USER, PARTICIPANT.TYPE.MODERATOR) + await testPromoteModerator(PARTICIPANT.TYPE.USER, PARTICIPANT.TYPE.MODERATOR) }) test('promotes given guest to guest moderator', async() => { - testPromoteModerator(PARTICIPANT.TYPE.GUEST, PARTICIPANT.TYPE.GUEST_MODERATOR) + await testPromoteModerator(PARTICIPANT.TYPE.GUEST, PARTICIPANT.TYPE.GUEST_MODERATOR) }) }) @@ -278,10 +278,10 @@ describe('participantsStore', () => { } test('demotes given moderator to user', async() => { - testDemoteModerator(PARTICIPANT.TYPE.MODERATOR, PARTICIPANT.TYPE.USER) + await testDemoteModerator(PARTICIPANT.TYPE.MODERATOR, PARTICIPANT.TYPE.USER) }) test('promotes given guest to guest moderator', async() => { - testDemoteModerator(PARTICIPANT.TYPE.GUEST_MODERATOR, PARTICIPANT.TYPE.GUEST) + await testDemoteModerator(PARTICIPANT.TYPE.GUEST_MODERATOR, PARTICIPANT.TYPE.GUEST) }) }) }) |