Skip to content

Commit

Permalink
Remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Jan 25, 2023
1 parent 30241bf commit 2d2d908
Showing 1 changed file with 0 additions and 107 deletions.
107 changes: 0 additions & 107 deletions Tests/ApolloServerIntegrationTests/StarWarsServerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,113 +214,6 @@ class StarWarsServerTests: XCTestCase, CacheDependentTesting {
}
}

// MARK: @skip / @include directives

#warning("""
TODO: This functionality is all tested by skip/include tests on
GraphQLExecutor_SelectionSetMapper_FromResponse_Tests.
We just need to test that the selection sets for these are generated correctly by codegen
""")
// func testHeroNameConditionalExclusion() {
// fetch(query: HeroNameConditionalExclusionQuery(skipName: false)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// }
//
// fetch(query: HeroNameConditionalExclusionQuery(skipName: true)) { data in
// XCTAssertNil(data.hero?.name)
// }
// }
//
// func testHeroNameConditionalInclusion() {
// fetch(query: HeroNameConditionalInclusionQuery(includeName: true)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// }
//
// fetch(query: HeroNameConditionalInclusionQuery(includeName: false)) { data in
// XCTAssertNil(data.hero?.name)
// }
// }
//
// func testHeroNameConditionalBoth() {
// fetch(query: HeroNameConditionalBothQuery(skipName: false, includeName: true)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// }
//
// fetch(query: HeroNameConditionalBothQuery(skipName: true, includeName: true)) { data in
// XCTAssertNil(data.hero?.name)
// }
//
// fetch(query: HeroNameConditionalBothQuery(skipName: false, includeName: false)) { data in
// XCTAssertNil(data.hero?.name)
// }
//
// fetch(query: HeroNameConditionalBothQuery(skipName: true, includeName: false)) { data in
// XCTAssertNil(data.hero?.name)
// }
// }
//
// func testHeroNameConditionalBothSeparate() {
// fetch(query: HeroNameConditionalBothSeparateQuery(skipName: false, includeName: true)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// }
//
// fetch(query: HeroNameConditionalBothSeparateQuery(skipName: true, includeName: true)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// }
//
// fetch(query: HeroNameConditionalBothSeparateQuery(skipName: false, includeName: false)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// }
//
// fetch(query: HeroNameConditionalBothSeparateQuery(skipName: true, includeName: false)) { data in
// XCTAssertNil(data.hero?.name)
// }
// }
//
// func testHeroDetailsInlineConditionalInclusion() {
// fetch(query: HeroDetailsInlineConditionalInclusionQuery(includeDetails: true)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// XCTAssertEqual(data.hero?.appearsIn, [.newhope, .empire, .jedi])
// }
//
// fetch(query: HeroDetailsInlineConditionalInclusionQuery(includeDetails: false)) { data in
// XCTAssertNil(data.hero?.name)
// XCTAssertNil(data.hero?.appearsIn)
// }
// }
//
// func testHeroDetailsFragmentConditionalInclusion() {
// fetch(query: HeroDetailsFragmentConditionalInclusionQuery(includeDetails: true)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// XCTAssertEqual(data.hero?.asDroid?.primaryFunction, "Astromech")
// }
//
// fetch(query: HeroDetailsFragmentConditionalInclusionQuery(includeDetails: false)) { data in
// XCTAssertNil(data.hero?.name)
// XCTAssertNil(data.hero?.asDroid?.primaryFunction)
// }
// }
//
// func testHeroNameTypeSpecificConditionalInclusion() {
// fetch(query: HeroNameTypeSpecificConditionalInclusionQuery(includeName: true)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// XCTAssertEqual(data.hero?.asDroid?.name, "R2-D2")
// }
//
// fetch(query: HeroNameTypeSpecificConditionalInclusionQuery(includeName: false)) { data in
// XCTAssertEqual(data.hero?.name, "R2-D2")
// XCTAssertEqual(data.hero?.asDroid?.name, "R2-D2")
// }
//
// fetch(query: HeroNameTypeSpecificConditionalInclusionQuery(episode: .empire, includeName: true)) { data in
// XCTAssertEqual(data.hero?.name, "Luke Skywalker")
// }
//
// fetch(query: HeroNameTypeSpecificConditionalInclusionQuery(episode: .empire, includeName: false)) { data in
// XCTAssertNil(data.hero?.name)
// }
// }

// MARK: Mutations

func testCreateReviewForEpisode() {
Expand Down

0 comments on commit 2d2d908

Please sign in to comment.