Skip to content

Commit 465d54a

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: na - 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 4eb8f54 commit 465d54a

File tree

1 file changed

+8
-8
lines changed
  • lib/node_modules/@stdlib/net/http-server/docs/types

1 file changed

+8
-8
lines changed

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

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

93-
// The compiler throws an error if the function is provided a `maxPort` option which is not a number...
93+
// The compiler throws an error if the function is provided a `maxport` option which is not a number...
9494
{
95-
httpServerFactory( { 'maxPort': 'abc' }, requestListener ); // $ExpectError
96-
httpServerFactory( { 'maxPort': true }, requestListener ); // $ExpectError
97-
httpServerFactory( { 'maxPort': false }, requestListener ); // $ExpectError
98-
httpServerFactory( { 'maxPort': null }, requestListener ); // $ExpectError
99-
httpServerFactory( { 'maxPort': [] }, requestListener ); // $ExpectError
100-
httpServerFactory( { 'maxPort': {} }, requestListener ); // $ExpectError
101-
httpServerFactory( { 'maxPort': ( x: number ): number => x }, requestListener ); // $ExpectError
95+
httpServerFactory( { 'maxport': 'abc' }, requestListener ); // $ExpectError
96+
httpServerFactory( { 'maxport': true }, requestListener ); // $ExpectError
97+
httpServerFactory( { 'maxport': false }, requestListener ); // $ExpectError
98+
httpServerFactory( { 'maxport': null }, requestListener ); // $ExpectError
99+
httpServerFactory( { 'maxport': [] }, requestListener ); // $ExpectError
100+
httpServerFactory( { 'maxport': {} }, requestListener ); // $ExpectError
101+
httpServerFactory( { 'maxport': ( x: number ): number => x }, requestListener ); // $ExpectError
102102
}
103103

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

0 commit comments

Comments
 (0)