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

181 lines
4.5 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`trailing.graphql 1`] = `
====================================options=====================================
parsers: ["graphql"]
printWidth: 80
| printWidth
=====================================input======================================
query Query(
$pageID: ID!
$scale: Float
$PROJECT_UNIT_PROFILE_PICTURE_SIZE: Int
$PROJECT_UNIT_CARD_SIZE: Int
) @argumentDefinitions(
count: {type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301}
test: [{type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301}]
) {
cover_photo {
image(
width: $PROJECT_UNIT_CARD_SIZE,
height: $PROJECT_UNIT_CARD_SIZE,
sizing: "cover-fill",
scale: $scale,
) {
uri
}
}
}
=====================================output=====================================
query Query(
$pageID: ID!
$scale: Float
$PROJECT_UNIT_PROFILE_PICTURE_SIZE: Int
$PROJECT_UNIT_CARD_SIZE: Int
)
@argumentDefinitions(
count: {
type: "Int"
defaultValue: 20
someSuperSuperSuperSuperLongType: 301
}
test: [
{ type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301 }
]
) {
cover_photo {
image(
width: $PROJECT_UNIT_CARD_SIZE
height: $PROJECT_UNIT_CARD_SIZE
sizing: "cover-fill"
scale: $scale
) {
uri
}
}
}
================================================================================
`;
exports[`trailing.graphql 2`] = `
====================================options=====================================
parsers: ["graphql"]
printWidth: 80
trailingComma: "all"
| printWidth
=====================================input======================================
query Query(
$pageID: ID!
$scale: Float
$PROJECT_UNIT_PROFILE_PICTURE_SIZE: Int
$PROJECT_UNIT_CARD_SIZE: Int
) @argumentDefinitions(
count: {type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301}
test: [{type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301}]
) {
cover_photo {
image(
width: $PROJECT_UNIT_CARD_SIZE,
height: $PROJECT_UNIT_CARD_SIZE,
sizing: "cover-fill",
scale: $scale,
) {
uri
}
}
}
=====================================output=====================================
query Query(
$pageID: ID!
$scale: Float
$PROJECT_UNIT_PROFILE_PICTURE_SIZE: Int
$PROJECT_UNIT_CARD_SIZE: Int
)
@argumentDefinitions(
count: {
type: "Int"
defaultValue: 20
someSuperSuperSuperSuperLongType: 301
}
test: [
{ type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301 }
]
) {
cover_photo {
image(
width: $PROJECT_UNIT_CARD_SIZE
height: $PROJECT_UNIT_CARD_SIZE
sizing: "cover-fill"
scale: $scale
) {
uri
}
}
}
================================================================================
`;
exports[`trailing.graphql 3`] = `
====================================options=====================================
parsers: ["graphql"]
printWidth: 80
trailingComma: "es5"
| printWidth
=====================================input======================================
query Query(
$pageID: ID!
$scale: Float
$PROJECT_UNIT_PROFILE_PICTURE_SIZE: Int
$PROJECT_UNIT_CARD_SIZE: Int
) @argumentDefinitions(
count: {type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301}
test: [{type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301}]
) {
cover_photo {
image(
width: $PROJECT_UNIT_CARD_SIZE,
height: $PROJECT_UNIT_CARD_SIZE,
sizing: "cover-fill",
scale: $scale,
) {
uri
}
}
}
=====================================output=====================================
query Query(
$pageID: ID!
$scale: Float
$PROJECT_UNIT_PROFILE_PICTURE_SIZE: Int
$PROJECT_UNIT_CARD_SIZE: Int
)
@argumentDefinitions(
count: {
type: "Int"
defaultValue: 20
someSuperSuperSuperSuperLongType: 301
}
test: [
{ type: "Int", defaultValue: 20, someSuperSuperSuperSuperLongType: 301 }
]
) {
cover_photo {
image(
width: $PROJECT_UNIT_CARD_SIZE
height: $PROJECT_UNIT_CARD_SIZE
sizing: "cover-fill"
scale: $scale
) {
uri
}
}
}
================================================================================
`;