From 8fff1db4d0ea36e53ab530c30eb2d1a7bab57419 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 27 Jan 2021 20:33:36 +0000 Subject: [PATCH] lint and timeouts for importexport.js --- tests/backend/specs/api/importexport.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/backend/specs/api/importexport.js b/tests/backend/specs/api/importexport.js index 1a9e94332..43c895ae0 100644 --- a/tests/backend/specs/api/importexport.js +++ b/tests/backend/specs/api/importexport.js @@ -236,6 +236,7 @@ describe(__filename, function () { }); } it('createPad', function (done) { + this.timeout(200); api.get(`${endPoint('createPad')}&padID=${testPadId}`) .expect((res) => { if (res.body.code !== 0) throw new Error('Unable to create new Pad'); @@ -245,6 +246,7 @@ describe(__filename, function () { }); it('setHTML', function (done) { + this.timeout(100); api.get(`${endPoint('setHTML')}&padID=${testPadId}&html=${encodeURIComponent(test.input)}`) .expect((res) => { if (res.body.code !== 0) throw new Error(`Error:${testName}`); @@ -254,6 +256,7 @@ describe(__filename, function () { }); it('getHTML', function (done) { + this.timeout(100); api.get(`${endPoint('getHTML')}&padID=${testPadId}`) .expect((res) => { const gotHtml = res.body.data.html; @@ -277,6 +280,7 @@ describe(__filename, function () { }); it('getText', function (done) { + this.timeout(100); api.get(`${endPoint('getText')}&padID=${testPadId}`) .expect((res) => { const gotText = res.body.data.text;