Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
excitement-engineer committed Jun 28, 2020
1 parent dcfa00a commit bbdbb48
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"README.md"
],
"peerDependencies": {
"graphql": "^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand All @@ -52,7 +52,7 @@
"codecov": "^3.0.0",
"eslint-plugin-flowtype": "^2.50.0",
"flow-bin": "^0.81.0",
"graphql": "^14.0.2",
"graphql": "^15.0.0",
"jest": "^23.6.0",
"mockdate": "^2.0.2",
"standard": "^12.0.1"
Expand Down
8 changes: 4 additions & 4 deletions src/date/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ it('errors if the variable value is not a valid date', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Variable "$date" got invalid value "2017-10-001"; Expected type Date; Date cannot represent an invalid date-string 2017-10-001.')
new GraphQLError('Variable "$date" got invalid value "2017-10-001"; Expected type "Date". Date cannot represent an invalid date-string 2017-10-001.')
]
})
})
Expand All @@ -163,7 +163,7 @@ it('errors if the variable value is not of type string', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Variable "$date" got invalid value 4; Expected type Date; Date cannot represent non string type 4')
new GraphQLError('Variable "$date" got invalid value 4; Expected type "Date". Date cannot represent non string type 4')
]
})
})
Expand All @@ -179,7 +179,7 @@ it('errors if the literal input value is not a valid date', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Expected type Date, found "2017-10-001"; Date cannot represent an invalid date-string 2017-10-001.')
new GraphQLError('Expected value of type "Date", found "2017-10-001"; Date cannot represent an invalid date-string 2017-10-001.')
]
})
})
Expand All @@ -195,7 +195,7 @@ it('errors if the literal input value in a query is not a string', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Expected type Date, found 4; Date cannot represent non string type 4')
new GraphQLError('Expected value of type "Date", found 4; Date cannot represent non string type 4')
]
})
})
8 changes: 4 additions & 4 deletions src/dateTime/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ it('errors if the variable value is not a valid date-time', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Variable "$date" got invalid value "2017-10-001T00:00:00Z"; Expected type DateTime; DateTime cannot represent an invalid date-time-string 2017-10-001T00:00:00Z.')
new GraphQLError('Variable "$date" got invalid value "2017-10-001T00:00:00Z"; Expected type "DateTime". DateTime cannot represent an invalid date-time-string 2017-10-001T00:00:00Z.')
]
})
})
Expand All @@ -200,7 +200,7 @@ it('errors if the variable value is not of type string', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Variable "$date" got invalid value 4; Expected type DateTime; DateTime cannot represent non string type 4')
new GraphQLError('Variable "$date" got invalid value 4; Expected type "DateTime". DateTime cannot represent non string type 4')
]
})
})
Expand All @@ -216,7 +216,7 @@ it('errors if the literal input value is not a valid date-time', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Expected type DateTime, found "2017-10-001T00:00:00"; DateTime cannot represent an invalid date-time-string 2017-10-001T00:00:00.')
new GraphQLError('Expected value of type "DateTime", found "2017-10-001T00:00:00"; DateTime cannot represent an invalid date-time-string 2017-10-001T00:00:00.')
]
})
})
Expand All @@ -232,7 +232,7 @@ it('errors if the literal input value in a query is not a string', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Expected type DateTime, found 4; DateTime cannot represent non string type 4')
new GraphQLError('Expected value of type "DateTime", found 4; DateTime cannot represent non string type 4')
]
})
})
8 changes: 4 additions & 4 deletions src/time/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ it('errors if the variable value is not a valid time', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Variable "$time" got invalid value "__2222"; Expected type Time; Time cannot represent an invalid time-string __2222.')
new GraphQLError('Variable "$time" got invalid value "__2222"; Expected type "Time". Time cannot represent an invalid time-string __2222.')
]
})
})
Expand All @@ -193,7 +193,7 @@ it('errors if the variable value is not of type string', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Variable "$time" got invalid value 4; Expected type Time; Time cannot represent non string type 4')
new GraphQLError('Variable "$time" got invalid value 4; Expected type "Time". Time cannot represent non string type 4')
]
})
})
Expand All @@ -209,7 +209,7 @@ it('errors if the literal input value is not a valid time', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Expected type Time, found "__invalid__"; Time cannot represent an invalid time-string __invalid__.')
new GraphQLError('Expected value of type "Time", found "__invalid__"; Time cannot represent an invalid time-string __invalid__.')
]
})
})
Expand All @@ -225,7 +225,7 @@ it('errors if the literal input value in a query is not a string', async () => {

expect(response).toEqual({
errors: [
new GraphQLError('Expected type Time, found 4; Time cannot represent non string type 4')
new GraphQLError('Expected value of type "Time", found 4; Time cannot represent non string type 4')
]
})
})

0 comments on commit bbdbb48

Please sign in to comment.