From ead1214a1fbacda890dd7cfbb8bf0001232213f3 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Sat, 6 Jul 2019 11:59:38 -0400 Subject: [PATCH] Temporarily work around injection of objectSpread helper. https://github.com/babel/babel/pull/10170#issuecomment-508936150 --- packages/ecmascript/transpilation-tests.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/ecmascript/transpilation-tests.js b/packages/ecmascript/transpilation-tests.js index a56ecaae07c..f961e7c3352 100644 --- a/packages/ecmascript/transpilation-tests.js +++ b/packages/ecmascript/transpilation-tests.js @@ -78,11 +78,13 @@ Tinytest.add("ecmascript - transpilation - helpers - bind", (test) => { }); Tinytest.add("ecmascript - transpilation - helpers - extends", (test) => { - const output = transform(` - var full = {a:1, ...middle, d:4}; -`); + const output = transform("class A extends getBaseClass() {}"); + test.isTrue(/helpers\/inheritsLoose/.test(output)); +}); - test.isTrue(/helpers\/(builtin\/)?(extends|objectSpread)/.test(output)); +Tinytest.add("ecmascript - transpilation - helpers - objectSpread", (test) => { + const output = transform("var full = {a:1, ...middle, d:4};"); + test.isTrue(/objectSpread/.test(output)); }); Tinytest.add("ecmascript - transpilation - helpers - objectWithoutProperties", (test) => {