File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ const renderRequest = async markdown => {
36
36
'Content-Type' : 'text/plain' ,
37
37
} ,
38
38
body : markdown ,
39
- timeout : 3000 ,
39
+ timeout : {
40
+ request : 10000
41
+ }
40
42
} ;
41
43
42
44
try {
Original file line number Diff line number Diff line change 19
19
"system-test" : " c8 mocha -p -j 2 test/system.test.js --timeout=360000 --exit"
20
20
},
21
21
"dependencies" : {
22
- "express" : " ^4.17.1 " ,
23
- "markdown-it" : " ^13 .0.0"
22
+ "express" : " ^4.18.2 " ,
23
+ "markdown-it" : " ^14 .0.0"
24
24
},
25
25
"devDependencies" : {
26
26
"c8" : " ^8.0.0" ,
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
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' ;
21
19
22
20
let request ;
23
21
24
22
describe ( 'Unit Tests' , ( ) => {
25
23
before ( ( ) => {
26
- const app = require ( path . join ( __dirname , '..' , 'app' ) ) ;
24
+ import app from path . join ( __dirname , '..' , 'app' ) ;
27
25
request = supertest ( app ) ;
28
26
} ) ;
29
27
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
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
+
19
20
const auth = new GoogleAuth ( ) ;
20
21
21
22
describe ( 'End-to-End Tests' , ( ) => {
You can’t perform that action at this time.
0 commit comments