packages/babel-plugin-proposal-pipeline-operator/test/fixtures/hack-double-caret/class-decorator/input.js
raw symbols SCIP| 1 | const expectedValue = 42; |
| 2 | |
| 3 | function decorator (target) { |
| 4 | target.decoratorValue = expectedValue; |
| 5 | } |
| 6 | |
| 7 | const result = expectedValue |
| 8 | |> @decorator class { constructor () { this.value = ^^; } }; |
| 9 | |
| 10 | expect(result.decoratorValue).toBe(expectedValue); |
| 11 | expect((new result).value).toBe(expectedValue); |