JS: Add test case

This commit is contained in:
Asger Feldthaus
2020-11-04 16:48:11 +00:00
parent cb527cae73
commit 5eb3067f58
3 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
| destructuring-export-client.js:3:8:3:41 | // trac ... ort-foo | Failed to track destructuring-export-foo here. |
| destructuring-export-client.js:4:8:4:41 | // trac ... ort-bar | Failed to track destructuring-export-bar here. |

View File

@@ -0,0 +1,4 @@
import { foo, bar } from './destructuring-export';
foo(); // track: destructuring-export-foo
bar(); // track: destructuring-export-bar

View File

@@ -0,0 +1,4 @@
export const {
foo, // name: destructuring-export-foo
bar, // name: destructuring-export-bar
} = new Something();