Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steven
committed
Aug 2, 2018
1 parent
1e9d98c
commit ea5c68b
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function a() { | ||
return 'a' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
}); | ||
}); |