Skip to content

Commit fd5a3da

Browse files
committed
JS: One more test
1 parent 138b000 commit fd5a3da

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

javascript/ql/test/library-tests/Modules/arbitrarySpecifier.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export { Foo_new as "Foo::new" }
66
export type * as "Foo_types" from './mod'
77

88
export { "<X>" as "<Y>" } from "somewhere";
9+
export { "<X>" } from "somewhere";

javascript/ql/test/library-tests/Modules/tests.expected

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ test_ExportDeclarations
66
| arbitrarySpecifier.ts:5:1:5:32 | export ... :new" } |
77
| arbitrarySpecifier.ts:6:1:6:41 | export ... './mod' |
88
| arbitrarySpecifier.ts:8:1:8:43 | export ... where"; |
9+
| arbitrarySpecifier.ts:9:1:9:34 | export ... where"; |
910
| b.js:5:1:5:18 | export { f as g }; |
1011
| b.js:7:1:7:21 | export ... './a'; |
1112
| d.js:4:1:4:20 | export * from 'm/c'; |
@@ -24,6 +25,7 @@ test_ExportDefaultDeclarations
2425
test_ExportSpecifiers
2526
| arbitrarySpecifier.ts:5:10:5:30 | Foo_new ... o::new" | arbitrarySpecifier.ts:5:10:5:16 | Foo_new | arbitrarySpecifier.ts:5:21:5:30 | "Foo::new" |
2627
| arbitrarySpecifier.ts:8:10:8:23 | "<X>" as "<Y>" | arbitrarySpecifier.ts:8:10:8:14 | "<X>" | arbitrarySpecifier.ts:8:19:8:23 | "<Y>" |
28+
| arbitrarySpecifier.ts:9:10:9:14 | "<X>" | arbitrarySpecifier.ts:9:10:9:14 | "<X>" | arbitrarySpecifier.ts:9:10:9:14 | "<X>" |
2729
| b.js:5:10:5:15 | f as g | b.js:5:10:5:10 | f | b.js:5:15:5:15 | g |
2830
| e.js:2:10:2:10 | x | e.js:2:10:2:10 | x | e.js:2:10:2:10 | x |
2931
| e.js:2:13:2:13 | y | e.js:2:13:2:13 | y | e.js:2:13:2:13 | y |
@@ -83,8 +85,8 @@ test_Module_exports
8385
| a.js:1:1:5:32 | <toplevel> | default | a.js:1:16:3:1 | functio ... n 23;\\n} |
8486
| a.js:1:1:5:32 | <toplevel> | x | a.js:5:18:5:20 | f() |
8587
| a.js:1:1:5:32 | <toplevel> | y | a.js:5:25:5:25 | y |
86-
| arbitrarySpecifier.ts:1:1:9:0 | <toplevel> | Foo::new | arbitrarySpecifier.ts:5:10:5:16 | Foo_new |
87-
| arbitrarySpecifier.ts:1:1:9:0 | <toplevel> | Foo_types | arbitrarySpecifier.ts:6:13:6:28 | * as "Foo_types" |
88+
| arbitrarySpecifier.ts:1:1:10:0 | <toplevel> | Foo::new | arbitrarySpecifier.ts:5:10:5:16 | Foo_new |
89+
| arbitrarySpecifier.ts:1:1:10:0 | <toplevel> | Foo_types | arbitrarySpecifier.ts:6:13:6:28 | * as "Foo_types" |
8890
| b.js:1:1:8:0 | <toplevel> | f2 | a.js:1:16:3:1 | functio ... n 23;\\n} |
8991
| b.js:1:1:8:0 | <toplevel> | g | b.js:5:10:5:10 | f |
9092
| e.js:1:1:4:0 | <toplevel> | g | a.js:1:16:3:1 | functio ... n 23;\\n} |
@@ -112,6 +114,7 @@ test_OtherImports
112114
test_ReExportDeclarations
113115
| arbitrarySpecifier.ts:6:1:6:41 | export ... './mod' | arbitrarySpecifier.ts:6:35:6:41 | './mod' |
114116
| arbitrarySpecifier.ts:8:1:8:43 | export ... where"; | arbitrarySpecifier.ts:8:32:8:42 | "somewhere" |
117+
| arbitrarySpecifier.ts:9:1:9:34 | export ... where"; | arbitrarySpecifier.ts:9:23:9:33 | "somewhere" |
115118
| b.js:7:1:7:21 | export ... './a'; | b.js:7:16:7:20 | './a' |
116119
| d.js:4:1:4:20 | export * from 'm/c'; | d.js:4:15:4:19 | 'm/c' |
117120
| e.js:3:1:3:35 | export ... './a'; | e.js:3:30:3:34 | './a' |
@@ -132,6 +135,7 @@ test_getExportedName
132135
| arbitrarySpecifier.ts:5:10:5:30 | Foo_new ... o::new" | Foo::new |
133136
| arbitrarySpecifier.ts:6:13:6:28 | * as "Foo_types" | Foo_types |
134137
| arbitrarySpecifier.ts:8:10:8:23 | "<X>" as "<Y>" | <Y> |
138+
| arbitrarySpecifier.ts:9:10:9:14 | "<X>" | <X> |
135139
| b.js:5:10:5:15 | f as g | g |
136140
| b.js:7:8:7:9 | f2 | f2 |
137141
| e.js:2:10:2:10 | x | x |
@@ -157,6 +161,7 @@ test_getImportedName
157161
test_getLocalName
158162
| arbitrarySpecifier.ts:5:10:5:30 | Foo_new ... o::new" | Foo_new |
159163
| arbitrarySpecifier.ts:8:10:8:23 | "<X>" as "<Y>" | <X> |
164+
| arbitrarySpecifier.ts:9:10:9:14 | "<X>" | <X> |
160165
| b.js:5:10:5:15 | f as g | f |
161166
| b.js:7:8:7:9 | f2 | default |
162167
| e.js:2:10:2:10 | x | x |

0 commit comments

Comments
 (0)