Skip to content

Commit aaf638a

Browse files
committed
fix: update options timeout from number to object
1 parent 8d0355f commit aaf638a

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

run/markdown-preview/editor/render.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ const renderRequest = async markdown => {
3636
'Content-Type': 'text/plain',
3737
},
3838
body: markdown,
39-
timeout: 3000,
39+
timeout: {
40+
request: 10000
41+
}
4042
};
4143

4244
try {

run/markdown-preview/renderer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"system-test": "c8 mocha -p -j 2 test/system.test.js --timeout=360000 --exit"
2020
},
2121
"dependencies": {
22-
"express": "^4.17.1",
23-
"markdown-it": "^13.0.0"
22+
"express": "^4.18.2",
23+
"markdown-it": "^14.0.0"
2424
},
2525
"devDependencies": {
2626
"c8": "^8.0.0",

run/markdown-preview/renderer/test/app.test.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
'use strict';
16-
17-
const assert = require('assert');
18-
const path = require('path');
19-
const sinon = require('sinon');
20-
const supertest = require('supertest');
15+
import assert from 'assert';
16+
import path from 'path';
17+
import sinon from 'sinon';
18+
import supertest from 'supertest';
2119

2220
let request;
2321

2422
describe('Unit Tests', () => {
2523
before(() => {
26-
const app = require(path.join(__dirname, '..', 'app'));
24+
import app from path.join(__dirname, '..', 'app');
2725
request = supertest(app);
2826
});
2927

run/markdown-preview/renderer/test/system.test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
const assert = require('assert');
16-
const got = require('got');
17-
const {execSync} = require('child_process');
18-
const {GoogleAuth} = require('google-auth-library');
15+
import assert from 'assert';
16+
import got from 'got';
17+
import { execSync } from 'child_process';
18+
import { GoogleAuth } from 'google-auth-library';
19+
1920
const auth = new GoogleAuth();
2021

2122
describe('End-to-End Tests', () => {

0 commit comments

Comments
 (0)