lint and timeouts for importexport.js

mochawesome
John McLear 2021-01-27 20:33:36 +00:00
parent 02bb5a5b73
commit 8fff1db4d0
1 changed files with 4 additions and 0 deletions

View File

@ -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;