mirror of https://github.com/webpack/webpack.git
added tests for var
This commit is contained in:
parent
d91d17f2cf
commit
bd5fd5a886
|
|
@ -85,6 +85,16 @@ describe("Parser", () => {
|
|||
fgh.sub;
|
||||
}, {}
|
||||
],
|
||||
"var definition": [
|
||||
function() {
|
||||
let abc, cde, fgh;
|
||||
abc("test");
|
||||
cde.abc("test");
|
||||
cde.ddd.abc("test");
|
||||
fgh;
|
||||
fgh.sub;
|
||||
}, {}
|
||||
],
|
||||
"function definition": [
|
||||
function() {
|
||||
function abc() {}
|
||||
|
|
@ -126,6 +136,14 @@ describe("Parser", () => {
|
|||
abc: ["test"]
|
||||
}
|
||||
],
|
||||
"renaming with var": [
|
||||
function() {
|
||||
const xyz = abc;
|
||||
xyz("test");
|
||||
}, {
|
||||
abc: ["test"]
|
||||
}
|
||||
],
|
||||
"renaming with assignment": [
|
||||
function() {
|
||||
const xyz = abc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue