From 714e099b2a6e1e1a214cffe1834eedac1ea30e0e Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 9 Feb 2021 00:46:39 -0500 Subject: [PATCH] tests: Fix accidental functions in `ordered_list.js` This fixes a bug introduced in commit e9bb2c410ec95207e4461d0862e3afdba6aa6113. --- src/tests/frontend/specs/ordered_list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/frontend/specs/ordered_list.js b/src/tests/frontend/specs/ordered_list.js index 6f6b28144..ddca576e2 100644 --- a/src/tests/frontend/specs/ordered_list.js +++ b/src/tests/frontend/specs/ordered_list.js @@ -48,7 +48,7 @@ describe('ordered_list.js', function () { // TODO: Re-throw non-"condition never became true" errors to avoid false positives. } // This will fail if the above `waitForPromise()` succeeded. - expect(() => helper.padInner$('body').html()).to.be(originalHTML); + expect(helper.padInner$('body').html()).to.be(originalHTML); }); it('does not insert unordered list', function (done) { @@ -93,7 +93,7 @@ describe('ordered_list.js', function () { // TODO: Re-throw non-"condition never became true" errors to avoid false positives. } // This will fail if the above `waitForPromise()` succeeded. - expect(() => helper.padInner$('body').html()).to.be(originalHTML); + expect(helper.padInner$('body').html()).to.be(originalHTML); }); it('does not insert unordered list', function (done) {