mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 07:07:13 +02:00
feat: add vote privs to topic (#11734)
* feat: add vote privs to topic * add missing awaits
This commit is contained in:
committed by
GitHub
parent
09d42076be
commit
86faed6fd3
@@ -421,7 +421,7 @@ describe('Controllers', () => {
|
||||
interstitials: [],
|
||||
});
|
||||
assert.strictEqual(result.interstitials[0].template, 'partials/email_update');
|
||||
assert.rejects(result.interstitials[0].callback({ uid }, {
|
||||
await assert.rejects(result.interstitials[0].callback({ uid }, {
|
||||
email: 'invalidEmail',
|
||||
}), { message: '[[error:invalid-email]]' });
|
||||
});
|
||||
@@ -434,7 +434,7 @@ describe('Controllers', () => {
|
||||
interstitials: [],
|
||||
});
|
||||
assert.strictEqual(result.interstitials[0].template, 'partials/email_update');
|
||||
assert.rejects(result.interstitials[0].callback({ uid }, {
|
||||
await assert.rejects(result.interstitials[0].callback({ uid }, {
|
||||
email: ' ',
|
||||
}), { message: '[[error:invalid-email]]' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user