Skip to content

Commit

Permalink
fix: Remove tab indents and fix newly added FragmentTemplateTest cases
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Jun 14, 2022
1 parent 0d14cd9 commit a7878d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/ApolloCodegenLib/Templates/FragmentTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct FragmentTemplate: TemplateRenderer {
var template: TemplateString {
TemplateString(
"""
\(embeddedAccessControlModifier(config: config))\
\(embeddedAccessControlModifier(config: config))\
struct \(fragment.name.firstUppercased): \(schema.name)\
.\(if: isMutable, "Mutable")SelectionSet, Fragment {
public static var fragmentDefinition: StaticString { ""\"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class FragmentTemplateTests: XCTestCase {

let expected =
"""
public struct TestFragment: TestSchema.MutableSelectionSet, Fragment {
struct TestFragment: TestSchema.MutableSelectionSet, Fragment {
"""

// when
Expand All @@ -326,7 +326,7 @@ class FragmentTemplateTests: XCTestCase {

let expected =
"""
public struct TestFragment: TestSchema.MutableSelectionSet, Fragment {
struct TestFragment: TestSchema.MutableSelectionSet, Fragment {
public static var fragmentDefinition: StaticString { ""\"
fragment TestFragment on Query {
__typename
Expand Down

0 comments on commit a7878d4

Please sign in to comment.