Skip to content

Commit

Permalink
Temporarily work around injection of objectSpread helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jul 6, 2019
1 parent e2bbda2 commit ead1214
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/ecmascript/transpilation-tests.js
Expand Up @@ -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) => {
Expand Down

0 comments on commit ead1214

Please sign in to comment.