Skip to content

Commit

Permalink
Adds test cases for issue 7778
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven committed Aug 2, 2018
1 parent 1e9d98c commit ea5c68b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cases/parsing/issue-7778/a.js
@@ -0,0 +1,3 @@
export default function a() {
return 'a'
}
13 changes: 13 additions & 0 deletions test/cases/parsing/issue-7778/index.js
@@ -0,0 +1,13 @@
it("should detect query strings in dynamic import as a static value 1 ", function() {
import("./a?queryString").then(({ default: a }) => {
expect(a()).toBe("a");
});
});

it("should detect query strings in dynamic import as a static value 2", function() {
var testFileName = "a";

import(`./${testFileName}?queryStringSteven`).then(({ default: a }) => {
expect(a()).toBe("a");
});
});

0 comments on commit ea5c68b

Please sign in to comment.