Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 14, 2022
1 parent a05499e commit b17c0a3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
@@ -1,4 +1,4 @@
import foo1 from "foo.json" assert { type: "json" };
export { foo2 } from "foo.json" assert { type: "json" };
export { default as foo2 } from "foo.json" assert { type: "json" };
export * from "foo.json" assert { type: "json" };
export * as foo3 from "foo.json" assert { type: "json" };
@@ -1,4 +1,4 @@
import foo1 from "foo.json" assert { type: "json" };
export { foo2 } from "foo.json" assert { type: "json" };
export { default as foo2 } from "foo.json" assert { type: "json" };
export * from "foo.json" assert { type: "json" };
export * as foo3 from "foo.json" assert { type: "json" };
@@ -1 +1 @@
import { version } from "./package.json" assert { type: "json" }
import packageJson from "./package.json" assert { type: "json" }
@@ -1,3 +1,3 @@
"use strict";

var _package = require("./package.json");
var _package = babelHelpers.interopRequireDefault(require("./package.json"));
2 changes: 1 addition & 1 deletion packages/babel-template/test/index.js
Expand Up @@ -231,7 +231,7 @@ describe("@babel/template", function () {

it("should return assertions in ExportNamedDeclaration when using .ast", () => {
const result = template.ast(
`export { foo2 } from "foo.json" assert { type: "json" };`,
`export { default as foo2 } from "foo.json" assert { type: "json" };`,
{
plugins: ["importAssertions"],
},
Expand Down

0 comments on commit b17c0a3

Please sign in to comment.