Skip to content

Commit 89f3ccd

Browse files
committed
test: add e2e tests for https option
1 parent d0e0940 commit 89f3ccd

File tree

5 files changed

+549
-279
lines changed

5 files changed

+549
-279
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): console messages 1`] = `Array []`;
37+
38+
exports[`https option as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): page errors 1`] = `Array []`;
39+
40+
exports[`https option as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): response status 1`] = `200`;
41+
42+
exports[`https option as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): response text 1`] = `
43+
"Heyo.
44+
"
45+
`;
46+
47+
exports[`https option boolean should handle GET request to index route (/): console messages 1`] = `Array []`;
48+
49+
exports[`https option boolean should handle GET request to index route (/): page errors 1`] = `Array []`;
50+
51+
exports[`https option boolean should handle GET request to index route (/): response status 1`] = `200`;
52+
53+
exports[`https option boolean should handle GET request to index route (/): response text 1`] = `
54+
"Heyo.
55+
"
56+
`;
57+
58+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response status 1`] = `200`;
59+
60+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response text 1`] = `
61+
"Heyo.
62+
"
63+
`;
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): console messages 1`] = `Array []`;
37+
38+
exports[`https option as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): page errors 1`] = `Array []`;
39+
40+
exports[`https option as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): response status 1`] = `200`;
41+
42+
exports[`https option as an object when cacert, pfx, key and cert are symlinks should handle GET request to index route (/): response text 1`] = `
43+
"Heyo.
44+
"
45+
`;
46+
47+
exports[`https option boolean should handle GET request to index route (/): console messages 1`] = `Array []`;
48+
49+
exports[`https option boolean should handle GET request to index route (/): page errors 1`] = `Array []`;
50+
51+
exports[`https option boolean should handle GET request to index route (/): response status 1`] = `200`;
52+
53+
exports[`https option boolean should handle GET request to index route (/): response text 1`] = `
54+
"Heyo.
55+
"
56+
`;
57+
58+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response status 1`] = `200`;
59+
60+
exports[`https option should support the "requestCert" option should handle GET request to index route (/): response text 1`] = `
61+
"Heyo.
62+
"
63+
`;

0 commit comments

Comments
 (0)