diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-11 10:20:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 10:20:47 -0400 |
| commit | 15a763152f9d392cb80692262f8de5ef8ae15495 (patch) | |
| tree | fcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tests/testdata/doc | |
| parent | a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff) | |
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tests/testdata/doc')
| -rw-r--r-- | cli/tests/testdata/doc/import_map.json | 5 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/invalid_url.out | 4 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/module/fun.js | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/types_header.out | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/types_header.ts | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/types_hint.out | 5 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/types_hint.ts | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/types_ref.js | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/types_ref.out | 5 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/use_import_map.js | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/doc/use_import_map.out | 5 |
11 files changed, 38 insertions, 0 deletions
diff --git a/cli/tests/testdata/doc/import_map.json b/cli/tests/testdata/doc/import_map.json new file mode 100644 index 000000000..244a30296 --- /dev/null +++ b/cli/tests/testdata/doc/import_map.json @@ -0,0 +1,5 @@ +{ + "imports": { + "rex/": "./module/" + } +} diff --git a/cli/tests/testdata/doc/invalid_url.out b/cli/tests/testdata/doc/invalid_url.out new file mode 100644 index 000000000..8be787e90 --- /dev/null +++ b/cli/tests/testdata/doc/invalid_url.out @@ -0,0 +1,4 @@ +error: invalid URL: invalid domain character + +Caused by: + invalid domain character diff --git a/cli/tests/testdata/doc/module/fun.js b/cli/tests/testdata/doc/module/fun.js new file mode 100644 index 000000000..28901d945 --- /dev/null +++ b/cli/tests/testdata/doc/module/fun.js @@ -0,0 +1,2 @@ +/** This is some documentation */ +export function fun(_a, _b) {} diff --git a/cli/tests/testdata/doc/types_header.out b/cli/tests/testdata/doc/types_header.out new file mode 100644 index 000000000..ccff1a373 --- /dev/null +++ b/cli/tests/testdata/doc/types_header.out @@ -0,0 +1,6 @@ +Download http://127.0.0.1:4545/xTypeScriptTypes.js +Download http://127.0.0.1:4545/xTypeScriptTypes.d.ts +Defined in http://127.0.0.1:4545/xTypeScriptTypes.d.ts:1:0 + +const foo: "foo" + diff --git a/cli/tests/testdata/doc/types_header.ts b/cli/tests/testdata/doc/types_header.ts new file mode 100644 index 000000000..b64c8d000 --- /dev/null +++ b/cli/tests/testdata/doc/types_header.ts @@ -0,0 +1 @@ +export * from "http://127.0.0.1:4545/xTypeScriptTypes.js"; diff --git a/cli/tests/testdata/doc/types_hint.out b/cli/tests/testdata/doc/types_hint.out new file mode 100644 index 000000000..7eb05faed --- /dev/null +++ b/cli/tests/testdata/doc/types_hint.out @@ -0,0 +1,5 @@ +Defined in [WILDCARD]/type_definitions/foo.d.ts:2:0 + +const foo: string + An exported value. + diff --git a/cli/tests/testdata/doc/types_hint.ts b/cli/tests/testdata/doc/types_hint.ts new file mode 100644 index 000000000..bacea46db --- /dev/null +++ b/cli/tests/testdata/doc/types_hint.ts @@ -0,0 +1,2 @@ +// @deno-types="../type_definitions/foo.d.ts" +export * from "../type_definitions/foo.js"; diff --git a/cli/tests/testdata/doc/types_ref.js b/cli/tests/testdata/doc/types_ref.js new file mode 100644 index 000000000..03d8b5570 --- /dev/null +++ b/cli/tests/testdata/doc/types_ref.js @@ -0,0 +1,2 @@ +/// <reference types="../type_definitions/foo.d.ts" /> +export const foo = "foo"; diff --git a/cli/tests/testdata/doc/types_ref.out b/cli/tests/testdata/doc/types_ref.out new file mode 100644 index 000000000..7eb05faed --- /dev/null +++ b/cli/tests/testdata/doc/types_ref.out @@ -0,0 +1,5 @@ +Defined in [WILDCARD]/type_definitions/foo.d.ts:2:0 + +const foo: string + An exported value. + diff --git a/cli/tests/testdata/doc/use_import_map.js b/cli/tests/testdata/doc/use_import_map.js new file mode 100644 index 000000000..672a7a7bd --- /dev/null +++ b/cli/tests/testdata/doc/use_import_map.js @@ -0,0 +1 @@ +export { fun } from "rex/fun.js"; diff --git a/cli/tests/testdata/doc/use_import_map.out b/cli/tests/testdata/doc/use_import_map.out new file mode 100644 index 000000000..0b27ccf18 --- /dev/null +++ b/cli/tests/testdata/doc/use_import_map.out @@ -0,0 +1,5 @@ +Defined in [WILDCARD]/doc/module/fun.js:2:0 + +function fun(_a, _b) + This is some documentation + |
