Skip to content

Commit 4eb8f54

Browse files
committed
test: fix option name
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 6c3f6fe commit 4eb8f54

File tree

2 files changed

+9
-9
lines changed
  • lib/node_modules/@stdlib/net/http2-secure-server

2 files changed

+9
-9
lines changed

lib/node_modules/@stdlib/net/http2-secure-server/docs/types/test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ function done( error: Error | null, server: any ) {
113113
http2ServerFactory( { 'port': ( x: number ): number => x }, requestListener ); // $ExpectError
114114
}
115115

116-
// The compiler throws an error if the function is provided a `maxPort` option which is not a number...
116+
// The compiler throws an error if the function is provided a `maxport` option which is not a number...
117117
{
118-
http2ServerFactory( { 'maxPort': 'abc' }, requestListener ); // $ExpectError
119-
http2ServerFactory( { 'maxPort': true }, requestListener ); // $ExpectError
120-
http2ServerFactory( { 'maxPort': false }, requestListener ); // $ExpectError
121-
http2ServerFactory( { 'maxPort': null }, requestListener ); // $ExpectError
122-
http2ServerFactory( { 'maxPort': [] }, requestListener ); // $ExpectError
123-
http2ServerFactory( { 'maxPort': {} }, requestListener ); // $ExpectError
124-
http2ServerFactory( { 'maxPort': ( x: number ): number => x }, requestListener ); // $ExpectError
118+
http2ServerFactory( { 'maxport': 'abc' }, requestListener ); // $ExpectError
119+
http2ServerFactory( { 'maxport': true }, requestListener ); // $ExpectError
120+
http2ServerFactory( { 'maxport': false }, requestListener ); // $ExpectError
121+
http2ServerFactory( { 'maxport': null }, requestListener ); // $ExpectError
122+
http2ServerFactory( { 'maxport': [] }, requestListener ); // $ExpectError
123+
http2ServerFactory( { 'maxport': {} }, requestListener ); // $ExpectError
124+
http2ServerFactory( { 'maxport': ( x: number ): number => x }, requestListener ); // $ExpectError
125125
}
126126

127127
// The compiler throws an error if the function is provided a `hostname` option which is not a string...

lib/node_modules/@stdlib/net/http2-secure-server/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var EXCLUDE_OPTIONS = [
8282
* server.close();
8383
* }
8484
*
85-
* var http2Server = factor( opts );
85+
* var http2Server = factory( opts );
8686
* http2Server( done );
8787
*/
8888
function factory() {

0 commit comments

Comments
 (0)