mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
tests: Refine frontend tests
* Switch from `helper.newPad()` to `helper.aNewPad()`. * Promisify. * Delete redundant logic. * Lint fixes.
This commit is contained in:
parent
3790c0e41c
commit
bbf89dfcf9
35 changed files with 697 additions and 842 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
describe('delete keystroke', function () {
|
||||
// create a new pad before each test run
|
||||
beforeEach(function (cb) {
|
||||
helper.newPad(cb);
|
||||
beforeEach(async function () {
|
||||
this.timeout(60000);
|
||||
await helper.aNewPad();
|
||||
});
|
||||
|
||||
it('makes text delete', function (done) {
|
||||
it('makes text delete', async function () {
|
||||
this.timeout(50);
|
||||
const inner$ = helper.padInner$;
|
||||
|
||||
|
@ -28,7 +28,5 @@ describe('delete keystroke', function () {
|
|||
|
||||
// expect it to be one char less in length
|
||||
expect(newElementLength).to.be((elementLength - 1));
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue