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