Skip to content

Commit

Permalink
test(transformer/class-properties): add output.js files to override…
Browse files Browse the repository at this point in the history
… fixtures (#7777)

In two of the overridden text fixtures for class properties transform, there was no `output.js` file because what was overridden was just `options.json` and `update_fixtures.js` script then generated new output files using Babel with the new options.

That was fine, but doesn't work with #7771. So add `output.js` files to the these overrides too.
  • Loading branch information
overlookmotel committed Dec 10, 2024
1 parent 6768f7d commit 4f1ab49
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var _scopedFunctionWithThis = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("scopedFunctionWithThis");
class Child extends Parent {
constructor() {
super();
Object.defineProperty(this, _scopedFunctionWithThis, {
writable: true,
value: () => {
this.name = {};
}
});
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Child extends Parent {
constructor() {
super();
this.scopedFunctionWithThis = () => {
this.name = {};
};
}
}

0 comments on commit 4f1ab49

Please sign in to comment.