prettier/tests/import/__snapshots__/jsfmt.spec.js.snap

418 lines
11 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`brackets.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import {
runTaskForChanged,
description,
someOtherLabel,
thatMakes,
itGo,
multiLine,
andMore,
soWeCanGetItTo80Columns
} from '.';
import {fitsIn, oneLine} from '.';
=====================================output=====================================
import {
runTaskForChanged,
description,
someOtherLabel,
thatMakes,
itGo,
multiLine,
andMore,
soWeCanGetItTo80Columns
} from ".";
import { fitsIn, oneLine } from ".";
================================================================================
`;
exports[`brackets.js 2`] = `
====================================options=====================================
bracketSpacing: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import {
runTaskForChanged,
description,
someOtherLabel,
thatMakes,
itGo,
multiLine,
andMore,
soWeCanGetItTo80Columns
} from '.';
import {fitsIn, oneLine} from '.';
=====================================output=====================================
import {
runTaskForChanged,
description,
someOtherLabel,
thatMakes,
itGo,
multiLine,
andMore,
soWeCanGetItTo80Columns
} from ".";
import {fitsIn, oneLine} from ".";
================================================================================
`;
exports[`comments.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import { a //comment1
//comment2
//comment3
as b} from "";
import {
a as //comment1
//comment2
//comment3
b
} from "";
import {
a as //comment2 //comment1
//comment3
b
} from "";
import {
a as //comment3 //comment2 //comment1
b
} from "";
import {
// comment 1
FN1, // comment 2
/* comment 3 */ FN2,
// FN3,
FN4 /* comment 4 */
// FN4,
// FN5
} from "./module";
import {
ExecutionResult,
DocumentNode,
/* tslint:disable */
SelectionSetNode,
/* tslint:enable */
} from 'graphql';
import x, {
// comment
y
} from 'z';
=====================================output=====================================
import {
//comment1
//comment2
//comment3
a as b
} from "";
import {
//comment1
//comment2
//comment3
a as b
} from "";
import {
//comment2 //comment1
//comment3
a as b
} from "";
import {
//comment3 //comment2 //comment1
a as b
} from "";
import {
// comment 1
FN1, // comment 2
/* comment 3 */ FN2,
// FN3,
FN4 /* comment 4 */
// FN4,
// FN5
} from "./module";
import {
ExecutionResult,
DocumentNode,
/* tslint:disable */
SelectionSetNode
/* tslint:enable */
} from "graphql";
import x, {
// comment
y
} from "z";
================================================================================
`;
exports[`comments.js 2`] = `
====================================options=====================================
bracketSpacing: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import { a //comment1
//comment2
//comment3
as b} from "";
import {
a as //comment1
//comment2
//comment3
b
} from "";
import {
a as //comment2 //comment1
//comment3
b
} from "";
import {
a as //comment3 //comment2 //comment1
b
} from "";
import {
// comment 1
FN1, // comment 2
/* comment 3 */ FN2,
// FN3,
FN4 /* comment 4 */
// FN4,
// FN5
} from "./module";
import {
ExecutionResult,
DocumentNode,
/* tslint:disable */
SelectionSetNode,
/* tslint:enable */
} from 'graphql';
import x, {
// comment
y
} from 'z';
=====================================output=====================================
import {
//comment1
//comment2
//comment3
a as b
} from "";
import {
//comment1
//comment2
//comment3
a as b
} from "";
import {
//comment2 //comment1
//comment3
a as b
} from "";
import {
//comment3 //comment2 //comment1
a as b
} from "";
import {
// comment 1
FN1, // comment 2
/* comment 3 */ FN2,
// FN3,
FN4 /* comment 4 */
// FN4,
// FN5
} from "./module";
import {
ExecutionResult,
DocumentNode,
/* tslint:disable */
SelectionSetNode
/* tslint:enable */
} from "graphql";
import x, {
// comment
y
} from "z";
================================================================================
`;
exports[`empty-import.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import { } from '@types/googlemaps';
=====================================output=====================================
import {} from "@types/googlemaps";
================================================================================
`;
exports[`empty-import.js 2`] = `
====================================options=====================================
bracketSpacing: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import { } from '@types/googlemaps';
=====================================output=====================================
import {} from "@types/googlemaps";
================================================================================
`;
exports[`inline.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import somethingSuperLongsomethingSuperLong from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
import {somethingSuperLongsomethingSuperLong} from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
import a, {somethingSuperLongsomethingSuperLong} from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
import {a, somethingSuperLongsomethingSuperLong} from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
=====================================output=====================================
import somethingSuperLongsomethingSuperLong from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
import { somethingSuperLongsomethingSuperLong } from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
import a, {
somethingSuperLongsomethingSuperLong
} from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
import {
a,
somethingSuperLongsomethingSuperLong
} from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
================================================================================
`;
exports[`inline.js 2`] = `
====================================options=====================================
bracketSpacing: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import somethingSuperLongsomethingSuperLong from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
import {somethingSuperLongsomethingSuperLong} from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
import a, {somethingSuperLongsomethingSuperLong} from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
import {a, somethingSuperLongsomethingSuperLong} from 'somethingSuperLongsomethingSuperLongsomethingSuperLong'
=====================================output=====================================
import somethingSuperLongsomethingSuperLong from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
import {somethingSuperLongsomethingSuperLong} from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
import a, {
somethingSuperLongsomethingSuperLong
} from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
import {
a,
somethingSuperLongsomethingSuperLong
} from "somethingSuperLongsomethingSuperLongsomethingSuperLong";
================================================================================
`;
exports[`long-line.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import someCoolUtilWithARatherLongName from '../../../../utils/someCoolUtilWithARatherLongName';
=====================================output=====================================
import someCoolUtilWithARatherLongName from "../../../../utils/someCoolUtilWithARatherLongName";
================================================================================
`;
exports[`long-line.js 2`] = `
====================================options=====================================
bracketSpacing: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import someCoolUtilWithARatherLongName from '../../../../utils/someCoolUtilWithARatherLongName';
=====================================output=====================================
import someCoolUtilWithARatherLongName from "../../../../utils/someCoolUtilWithARatherLongName";
================================================================================
`;
exports[`multiple_standalones.js 1`] = `
====================================options=====================================
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import a, * as b from 'a';
=====================================output=====================================
import a, * as b from "a";
================================================================================
`;
exports[`multiple_standalones.js 2`] = `
====================================options=====================================
bracketSpacing: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
import a, * as b from 'a';
=====================================output=====================================
import a, * as b from "a";
================================================================================
`;