packages/babel-plugin-proposal-pipeline-operator/test/fixtures/hack-double-caret/class-decorator/output.js
raw symbols SCIP| 1 | var _initClass, _decorated_class, _class; |
| 2 | const expectedValue = 42; |
| 3 | function decorator(target) { |
| 4 | target.decoratorValue = expectedValue; |
| 5 | } |
| 6 | const result = ((_class = class { |
| 7 | constructor() { |
| 8 | this.value = expectedValue; |
| 9 | } |
| 10 | }, [_decorated_class, _initClass] = babelHelpers.applyDecs(_class, [], [decorator]), _initClass()), _decorated_class); |
| 11 | expect(result.decoratorValue).toBe(expectedValue); |
| 12 | expect(new result().value).toBe(expectedValue); |