low hanging lint and some hard coded timeouts

This commit is contained in:
John McLear 2021-01-27 04:53:28 +00:00
parent 809670dbea
commit edf1dabe65
36 changed files with 273 additions and 150 deletions

View file

@ -1,3 +1,5 @@
'use strict';
describe('strikethrough button', function () {
// create a new pad before each test run
beforeEach(function (cb) {
@ -6,6 +8,7 @@ describe('strikethrough button', function () {
});
it('makes text strikethrough', function (done) {
this.timeout(100);
const inner$ = helper.padInner$;
const chrome$ = helper.padChrome$;
@ -19,7 +22,8 @@ describe('strikethrough button', function () {
const $strikethroughButton = chrome$('.buttonicon-strikethrough');
$strikethroughButton.click();
// ace creates a new dom element when you press a button, so just get the first text element again
// ace creates a new dom element when you press a button
// so just get the first text element again
const $newFirstTextElement = inner$('div').first();
// is there a <i> element now?