mirror of https://github.com/webpack/webpack.git
Merge pull request #17248 from webpack/issue-17189
test: case for destruction
This commit is contained in:
commit
d802b28b66
|
|
@ -0,0 +1,15 @@
|
||||||
|
import module from "./module.js";
|
||||||
|
|
||||||
|
it("should parse sparse arrays", function() {
|
||||||
|
var {
|
||||||
|
a,
|
||||||
|
...other1
|
||||||
|
} = module;
|
||||||
|
var {
|
||||||
|
b,
|
||||||
|
...other2
|
||||||
|
} = module;
|
||||||
|
|
||||||
|
expect(other1).toEqual({ b: 2, c: 3 });
|
||||||
|
expect(other2).toEqual({ a: 1, c: 3 });
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
var test = {
|
||||||
|
a: 1,
|
||||||
|
b: 2,
|
||||||
|
c: 3
|
||||||
|
};
|
||||||
|
export default test;
|
||||||
Loading…
Reference in New Issue