Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 2, 2023
1 parent 9c3b10f commit 23e4faa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/babel-standalone/test/preset-stage-1.test.js
Expand Up @@ -82,6 +82,9 @@ describe("stage-1 preset", () => {
const output = Babel.transform("expr1?.prop = val", {
presets: [["stage-1", { decoratorsVersion: "2021-12" }]],
}).code;
expect(output).toMatchInlineSnapshot(`"expr1 == null ? undefined : expr1.prop = val;"`);
expect(output).toMatchInlineSnapshot(`
"var _expr;
(_expr = expr1) === null || _expr === void 0 ? void 0 : _expr.prop = val;"
`);
});
});

0 comments on commit 23e4faa

Please sign in to comment.