diff --git a/packages/babel-preset-env/test/fixtures/corejs2/usage-for-of-destructure-with/output.mjs b/packages/babel-preset-env/test/fixtures/corejs2/usage-for-of-destructure-with/output.mjs index 18b1bb0bfb15..6762f8384120 100644 --- a/packages/babel-preset-env/test/fixtures/corejs2/usage-for-of-destructure-with/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs2/usage-for-of-destructure-with/output.mjs @@ -1,9 +1,8 @@ import "core-js/modules/es7.string.pad-end"; import "core-js/modules/es7.string.pad-start"; -for (const _ref of foo) { - const { - padStart - } = _ref; +for (const { + padStart +} of foo) { console.log('b'.padEnd(5)); } diff --git a/packages/babel-preset-env/test/fixtures/corejs3/usage-for-of-destructure-with/output.mjs b/packages/babel-preset-env/test/fixtures/corejs3/usage-for-of-destructure-with/output.mjs index 5237617a6e67..2769d6c95b21 100644 --- a/packages/babel-preset-env/test/fixtures/corejs3/usage-for-of-destructure-with/output.mjs +++ b/packages/babel-preset-env/test/fixtures/corejs3/usage-for-of-destructure-with/output.mjs @@ -2,9 +2,8 @@ import "core-js/modules/es.array.iterator"; import "core-js/modules/es.string.pad-end"; import "core-js/modules/es.string.pad-start"; -for (const _ref of foo) { - const { - padStart - } = _ref; +for (const { + padStart +} of foo) { console.log('b'.padEnd(5)); }