Skip to content

Commit e8bbace

Browse files
authored
test: add e2e tests for https option (#3776)
1 parent d0e0940 commit e8bbace

File tree

5 files changed

+526
-279
lines changed

5 files changed

+526
-279
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): console messages 1`] = `Array []`;
4+
5+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): page errors 1`] = `Array []`;
6+
7+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response status 1`] = `200`;
8+
9+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response text 1`] = `
10+
"Heyo.
11+
"
12+
`;
13+
14+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): console messages 1`] = `Array []`;
15+
16+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): page errors 1`] = `Array []`;
17+
18+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response status 1`] = `200`;
19+
20+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response text 1`] = `
21+
"Heyo.
22+
"
23+
`;
24+
25+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): console messages 1`] = `Array []`;
26+
27+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): page errors 1`] = `Array []`;
28+
29+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response status 1`] = `200`;
30+
31+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response text 1`] = `
32+
"Heyo.
33+
"
34+
`;
35+
36+
exports[`https option boolean should handle GET request to index route (/): console messages 1`] = `Array []`;
37+
38+
exports[`https option boolean should handle GET request to index route (/): page errors 1`] = `Array []`;
39+
40+
exports[`https option boolean should handle GET request to index route (/): response status 1`] = `200`;
41+
42+
exports[`https option boolean should handle GET request to index route (/): response text 1`] = `
43+
"Heyo.
44+
"
45+
`;
46+
47+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response status 1`] = `200`;
48+
49+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response text 1`] = `
50+
"Heyo.
51+
"
52+
`;
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): console messages 1`] = `Array []`;
4+
5+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): page errors 1`] = `Array []`;
6+
7+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response status 1`] = `200`;
8+
9+
exports[`https option as an object when cacert, pfx, key and cert are buffer should handle GET request to index route (/): response text 1`] = `
10+
"Heyo.
11+
"
12+
`;
13+
14+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): console messages 1`] = `Array []`;
15+
16+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): page errors 1`] = `Array []`;
17+
18+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response status 1`] = `200`;
19+
20+
exports[`https option as an object when cacert, pfx, key and cert are paths should handle GET request to index route (/): response text 1`] = `
21+
"Heyo.
22+
"
23+
`;
24+
25+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): console messages 1`] = `Array []`;
26+
27+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): page errors 1`] = `Array []`;
28+
29+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response status 1`] = `200`;
30+
31+
exports[`https option as an object when cacert, pfx, key and cert are raw strings should handle GET request to index route (/): response text 1`] = `
32+
"Heyo.
33+
"
34+
`;
35+
36+
exports[`https option boolean should handle GET request to index route (/): console messages 1`] = `Array []`;
37+
38+
exports[`https option boolean should handle GET request to index route (/): page errors 1`] = `Array []`;
39+
40+
exports[`https option boolean should handle GET request to index route (/): response status 1`] = `200`;
41+
42+
exports[`https option boolean should handle GET request to index route (/): response text 1`] = `
43+
"Heyo.
44+
"
45+
`;
46+
47+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response status 1`] = `200`;
48+
49+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response text 1`] = `
50+
"Heyo.
51+
"
52+
`;

0 commit comments

Comments
 (0)