diff options
author | uki00a <uki00a@gmail.com> | 2020-06-09 21:12:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 14:12:47 +0200 |
commit | 2b2d800b43e548e615abef80278d20dda5ae7d42 (patch) | |
tree | 3fadab0dbce29b7ce98f08a43fb3ca0bed2924bb /cli/tests | |
parent | b3e189ee4f97a9d6c5b7a2164d644aa4c7fa4b79 (diff) |
feat(doc): display all overloads in cli details view (#6186)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts | 6 | ||||
-rw-r--r-- | cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts.out | 12 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 7 |
3 files changed, 24 insertions, 1 deletions
diff --git a/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts b/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts new file mode 100644 index 000000000..479dfca79 --- /dev/null +++ b/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts @@ -0,0 +1,6 @@ +/* eslint-disable */ +export namespace NS { + export function test(name: string, fn: Function): void; + export function test(options: object): void; + export function test(name: string | object, fn?: Function): void {} +} diff --git a/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts.out b/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts.out new file mode 100644 index 000000000..b7b4076f9 --- /dev/null +++ b/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts.out @@ -0,0 +1,12 @@ +Defined in [WILDCARD]/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts:3:2 + +function test(name: string, fn: Function): void + +Defined in [WILDCARD]/cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts:4:2 + +function test(options: object): void + +Defined in [WILDCARD]cli/tests/060_deno_doc_displays_all_overloads_in_details_view.ts:5:2 + +function test(name: string | object, fn?: Function): void + diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 6583f5f25..2da5eebcb 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -500,7 +500,7 @@ fn ts_dependency_recompilation() { function print(str: string): void { console.log(str); } - + print(foo);", ) .unwrap(); @@ -1419,6 +1419,11 @@ itest!(_059_fs_relative_path_perm { exit_code: 1, }); +itest!(_060_deno_doc_displays_all_overloads_in_details_view { + args: "doc 060_deno_doc_displays_all_overloads_in_details_view.ts NS.test", + output: "060_deno_doc_displays_all_overloads_in_details_view.ts.out", +}); + itest!(js_import_detect { args: "run --quiet --reload js_import_detect.ts", output: "js_import_detect.ts.out", |