Skip to content

Corrects test field ordering #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 54 additions & 54 deletions Tests/GraphQLRxSwiftTests/GraphQL/SubscriptionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ class SubscriptionTests : XCTestCase {

XCTAssertEqual(currentResult, GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 2,
"unread": 1
],
"email":[
"subject": "Alright",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Alright"
],
"inbox":[
"unread": 1,
"total": 2
]
]]
))
Expand Down Expand Up @@ -150,13 +150,13 @@ class SubscriptionTests : XCTestCase {

XCTAssertEqual(currentResult, GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 2,
"unread": 1
],
"email":[
"subject": "Alright",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Alright"
],
"inbox":[
"unread": 1,
"total": 2
]
]]
))
Expand Down Expand Up @@ -410,13 +410,13 @@ class SubscriptionTests : XCTestCase {
))
XCTAssertEqual(currentResult, GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 2,
"unread": 1
],
"email":[
"subject": "Alright",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Alright"
],
"inbox":[
"unread": 1,
"total": 2
]
]]
))
Expand Down Expand Up @@ -465,13 +465,13 @@ class SubscriptionTests : XCTestCase {

let expected = GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 2,
"unread": 1
],
"email":[
"subject": "Alright",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Alright"
],
"inbox":[
"unread": 1,
"total": 2
]
]]
)
Expand Down Expand Up @@ -516,13 +516,13 @@ class SubscriptionTests : XCTestCase {
))
XCTAssertEqual(currentResult, GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 2,
"unread": 1
],
"email":[
"subject": "Alright",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Alright"
],
"inbox":[
"unread": 1,
"total": 2
]
]]
))
Expand All @@ -535,13 +535,13 @@ class SubscriptionTests : XCTestCase {
))
XCTAssertEqual(currentResult, GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 3,
"unread": 2
],
"email":[
"subject": "Tools",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Tools"
],
"inbox":[
"unread": 2,
"total": 3
]
]]
))
Expand Down Expand Up @@ -584,13 +584,13 @@ class SubscriptionTests : XCTestCase {
))
let firstMessageExpected = GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 2,
"unread": 1
],
"email":[
"subject": "Alright",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Alright"
],
"inbox":[
"unread": 1,
"total": 2
]
]]
)
Expand All @@ -616,13 +616,13 @@ class SubscriptionTests : XCTestCase {
))
XCTAssertEqual(currentResult, GraphQLResult(
data: ["importantEmail": [
"inbox":[
"total": 4,
"unread": 3
],
"email":[
"subject": "Tools",
"from": "[email protected]"
"from": "[email protected]",
"subject": "Tools"
],
"inbox":[
"unread": 3,
"total": 4
]
]]
))
Expand Down Expand Up @@ -657,14 +657,14 @@ class SubscriptionTests : XCTestCase {

let expected = GraphQLResult(
data: ["importantEmail": [
"email":[
"from": "[email protected]",
"subject": "Alright"
],
"inbox":[
"total": 2,
"unread": 1
"unread": 1,
"total": 2
],
"email":[
"subject": "Alright",
"from": "[email protected]"
]
]]
)

Expand Down
8 changes: 4 additions & 4 deletions Tests/GraphQLRxSwiftTests/Graphiti/GraphitiRxSwiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ class HelloWorldTests : XCTestCase {

XCTAssertEqual(currentResult, GraphQLResult(data: [
"subscribeUser": [
"name": "Jerry",
"id": "124"
"id": "124",
"name": "Jerry"
]
]))
}
Expand Down Expand Up @@ -269,8 +269,8 @@ class HelloWorldTests : XCTestCase {
XCTAssertEqual(currentResult, GraphQLResult(data: [
"subscribeUserEvent": [
"user": [
"name": "Jerry",
"id": "124"
"id": "124",
"name": "Jerry"
]
]
]))
Expand Down