lint and timeouts for importexport.js
parent
02bb5a5b73
commit
8fff1db4d0
|
@ -236,6 +236,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
it('createPad', function (done) {
|
it('createPad', function (done) {
|
||||||
|
this.timeout(200);
|
||||||
api.get(`${endPoint('createPad')}&padID=${testPadId}`)
|
api.get(`${endPoint('createPad')}&padID=${testPadId}`)
|
||||||
.expect((res) => {
|
.expect((res) => {
|
||||||
if (res.body.code !== 0) throw new Error('Unable to create new Pad');
|
if (res.body.code !== 0) throw new Error('Unable to create new Pad');
|
||||||
|
@ -245,6 +246,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('setHTML', function (done) {
|
it('setHTML', function (done) {
|
||||||
|
this.timeout(100);
|
||||||
api.get(`${endPoint('setHTML')}&padID=${testPadId}&html=${encodeURIComponent(test.input)}`)
|
api.get(`${endPoint('setHTML')}&padID=${testPadId}&html=${encodeURIComponent(test.input)}`)
|
||||||
.expect((res) => {
|
.expect((res) => {
|
||||||
if (res.body.code !== 0) throw new Error(`Error:${testName}`);
|
if (res.body.code !== 0) throw new Error(`Error:${testName}`);
|
||||||
|
@ -254,6 +256,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('getHTML', function (done) {
|
it('getHTML', function (done) {
|
||||||
|
this.timeout(100);
|
||||||
api.get(`${endPoint('getHTML')}&padID=${testPadId}`)
|
api.get(`${endPoint('getHTML')}&padID=${testPadId}`)
|
||||||
.expect((res) => {
|
.expect((res) => {
|
||||||
const gotHtml = res.body.data.html;
|
const gotHtml = res.body.data.html;
|
||||||
|
@ -277,6 +280,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('getText', function (done) {
|
it('getText', function (done) {
|
||||||
|
this.timeout(100);
|
||||||
api.get(`${endPoint('getText')}&padID=${testPadId}`)
|
api.get(`${endPoint('getText')}&padID=${testPadId}`)
|
||||||
.expect((res) => {
|
.expect((res) => {
|
||||||
const gotText = res.body.data.text;
|
const gotText = res.body.data.text;
|
||||||
|
|
Loading…
Reference in New Issue