Skip to content

Commit

Permalink
Add tests for babel/babel#12281
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Nov 6, 2020
1 parent 292c53c commit 1a2216d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/js/import-assertions/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -42,6 +42,20 @@ import json from "./foo.json" assert { type: "json" };
================================================================================
`;

exports[`import-assertions-without-from.js format 1`] = `
====================================options=====================================
parsers: ["babel"]
printWidth: 80
| printWidth
=====================================input======================================
import "foo" assert { type: "json" }
=====================================output=====================================
import "foo" assert { type: "json" };
================================================================================
`;

exports[`not-import-assertions.js format 1`] = `
====================================options=====================================
parsers: ["babel"]
Expand Down
@@ -0,0 +1 @@
import "foo" assert { type: "json" }
2 changes: 2 additions & 0 deletions tests/js/import-assertions/jsfmt.spec.js
Expand Up @@ -4,11 +4,13 @@ run_spec(__dirname, ["babel"], {
"import-assertions-dynamic.js",
"import-assertions-multi-types.js",
"import-assertions-static.js",
"import-assertions-without-from.js",
],
meriyah: [
"import-assertions-dynamic.js",
"import-assertions-multi-types.js",
"import-assertions-static.js",
"import-assertions-without-from.js",
],
},
});

0 comments on commit 1a2216d

Please sign in to comment.