Skip to content

Commit

Permalink
Add tests for babel/babel#13659
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Aug 18, 2021
1 parent c05115d commit 09510ab
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/format/flow/import/__snapshots__/jsfmt.spec.js.snap
@@ -0,0 +1,35 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`import-as-as.js format 1`] = `
====================================options=====================================
parsers: ["flow"]
printWidth: 80
| printWidth
=====================================input======================================
// @flow
import { foo as as } from "foo";
import { as as as } from "foo";
import { as as foo } from "foo";
=====================================output=====================================
// @flow
import { foo as as } from "foo";
import { as as as } from "foo";
import { as as foo } from "foo";
================================================================================
`;

exports[`type-import-as-as.js format 1`] = `
====================================options=====================================
parsers: ["flow"]
printWidth: 80
| printWidth
=====================================input======================================
import {type foo as as} from "foo";
=====================================output=====================================
import { type foo as as } from "foo";
================================================================================
`;
4 changes: 4 additions & 0 deletions tests/format/flow/import/import-as-as.js
@@ -0,0 +1,4 @@
// @flow
import { foo as as } from "foo";
import { as as as } from "foo";
import { as as foo } from "foo";
1 change: 1 addition & 0 deletions tests/format/flow/import/jsfmt.spec.js
@@ -0,0 +1 @@
run_spec(__dirname, ["flow"]);
1 change: 1 addition & 0 deletions tests/format/flow/import/type-import-as-as.js
@@ -0,0 +1 @@
import {type foo as as} from "foo";

0 comments on commit 09510ab

Please sign in to comment.