Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Mar 8, 2024
1 parent 33a87fc commit f46ea98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-standalone/test/preset-stage-1.test.js
Expand Up @@ -45,10 +45,10 @@ describe("stage-1 preset", () => {
}).code;
expect(output).toMatchInlineSnapshot(`"x;"`);
});
it("should support decorators versioned 2021-12", () => {
it("should support decorators versioned 2023-11", () => {
const output = Babel.transform("@dec class C {}", {
plugins: [["external-helpers", { helperVersion: "7.100.0" }]],
presets: [["stage-1", { decoratorsVersion: "2021-12" }]],
presets: [["stage-3", { decoratorsVersion: "2023-11" }]],
}).code;
expect(output).toMatch("babelHelpers.applyDecs");
});
Expand Down

0 comments on commit f46ea98

Please sign in to comment.