Skip to content

Commit

Permalink
Remove unnecessary preset tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed May 21, 2017
1 parent b19ff91 commit 811a465
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/babel-preset-babili/__tests__/preset-tests.js
Expand Up @@ -155,28 +155,4 @@ describe("preset", () => {
`);
expect(transform(source)).toBe(expected);
});

it("should fix bug#326 - object destructuring", () => {
const source = unpad(`
function a() {
let foo, bar, baz;
({foo, bar, baz} = {});
return {foo, bar, baz};
}
`);
const expected = unpad(`
function a() {
let b, c, d;
return ({ foo: b, bar: c, baz: d } = {}), { foo: b, bar: c, baz: d };
}
`);
expect(
transform(source, {
mangle: {
reuse: false
}
})
).toBe(expected);
});
});

0 comments on commit 811a465

Please sign in to comment.