You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/mutation.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ describe('Mutation', () => {
108
108
}
109
109
110
110
expect(error).to.be.an.instanceOf(Error)
111
-
expect(error.message).to.be.eq('Variable "$input" got invalid value { email: "test@test.com", username: 1, fullName: "test", password: "test" }; Expected type String at value.username; String cannot represent a non string value: 1')
111
+
expect(error.message).to.be.eq('Variable "$input" got invalid value { email: "test@test.com", username: 1, fullName: "test", password: "test" }; Expected type String at value.username. String cannot represent a non string value: 1')
112
112
})
113
113
114
114
it('Should throw an error if the input is boolean and it must be a string',()=>{
@@ -134,7 +134,7 @@ describe('Mutation', () => {
134
134
}
135
135
136
136
expect(error).to.be.an.instanceOf(Error)
137
-
expect(error.message).to.be.eq('Variable "$input" got invalid value { email: "test@test.com", username: true, fullName: "test", password: "test" }; Expected type String at value.username; String cannot represent a non string value: true')
137
+
expect(error.message).to.be.eq('Variable "$input" got invalid value { email: "test@test.com", username: true, fullName: "test", password: "test" }; Expected type String at value.username. String cannot represent a non string value: true')
138
138
})
139
139
140
140
it('Should throw an error if the input is not an array of values',()=>{
@@ -212,7 +212,7 @@ describe('Mutation', () => {
212
212
}
213
213
214
214
expect(error).to.be.an.instanceOf(Error)
215
-
expect(error.message).to.be.eq('Variable "$input" got invalid value { id: "123", age: "10" }; Expected type Int at value.age; Int cannot represent non-integer value: "10"')
215
+
expect(error.message).to.be.eq('Variable "$input" got invalid value { id: "123", age: "10" }; Expected type Int at value.age. Int cannot represent non-integer value: "10"')
216
216
})
217
217
218
218
it('Should throw an error if the input is boolean and it must be a number',()=>{
@@ -236,7 +236,7 @@ describe('Mutation', () => {
236
236
}
237
237
238
238
expect(error).to.be.an.instanceOf(Error)
239
-
expect(error.message).to.be.eq('Variable "$input" got invalid value { id: "123", age: true }; Expected type Int at value.age; Int cannot represent non-integer value: true')
239
+
expect(error.message).to.be.eq('Variable "$input" got invalid value { id: "123", age: true }; Expected type Int at value.age. Int cannot represent non-integer value: true')
240
240
})
241
241
242
242
it('Should throw an error if the input value is invalid',()=>{
@@ -722,7 +722,7 @@ describe('Mutation', () => {
722
722
}
723
723
724
724
expect(error).to.exist
725
-
expect(error.message).to.be.eq('Variable "$input" got invalid value { isAdmin: [true] }; Expected type Boolean at value.isAdmin; Boolean cannot represent a non boolean value: [true]')
725
+
expect(error.message).to.be.eq('Variable "$input" got invalid value { isAdmin: [true] }; Expected type Boolean at value.isAdmin. Boolean cannot represent a non boolean value: [true]')
0 commit comments