| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 197b616 commit f3c3b1d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,3 +114,15 @@ common.expectsInternalAssertion( | |||
| 114 | 114 | } | |
| 115 | 115 | ); | |
| 116 | 116 | } | |
| 117 | + | ||
| 118 | + assert.throws(() => { tls.createSecureContext({ minVersion: 'fhqwhgads' }); }, | ||
| 119 | + { | ||
| 120 | + code: 'ERR_TLS_INVALID_PROTOCOL_VERSION', | ||
| 121 | + name: 'TypeError' | ||
| 122 | + }); | ||
| 123 | + | ||
| 124 | + assert.throws(() => { tls.createSecureContext({ maxVersion: 'fhqwhgads' }); }, | ||
| 125 | + { | ||
| 126 | + code: 'ERR_TLS_INVALID_PROTOCOL_VERSION', | ||
| 127 | + name: 'TypeError' | ||
| 128 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments