Skip to content

Commit 4c78779

Browse files
authored
Update versions (#115)
1 parent f78109f commit 4c78779

File tree

3 files changed

+20
-25
lines changed

3 files changed

+20
-25
lines changed

package-lock.json

Lines changed: 12 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
},
3535
"license": "MIT",
3636
"dependencies": {
37-
"easygraphql-mock": "^0.1.14",
38-
"easygraphql-parser": "^0.0.11",
39-
"graphql": "^14.1.1",
37+
"easygraphql-mock": "^0.1.15",
38+
"easygraphql-parser": "^0.0.12",
39+
"graphql": "^14.4.0",
4040
"graphql-tools": "^4.0.4",
4141
"lodash.isempty": "^4.4.0",
4242
"lodash.isobject": "^3.0.2",

test/mutation.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('Mutation', () => {
108108
}
109109

110110
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')
112112
})
113113

114114
it('Should throw an error if the input is boolean and it must be a string', () => {
@@ -134,7 +134,7 @@ describe('Mutation', () => {
134134
}
135135

136136
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')
138138
})
139139

140140
it('Should throw an error if the input is not an array of values', () => {
@@ -212,7 +212,7 @@ describe('Mutation', () => {
212212
}
213213

214214
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"')
216216
})
217217

218218
it('Should throw an error if the input is boolean and it must be a number', () => {
@@ -236,7 +236,7 @@ describe('Mutation', () => {
236236
}
237237

238238
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')
240240
})
241241

242242
it('Should throw an error if the input value is invalid', () => {
@@ -722,7 +722,7 @@ describe('Mutation', () => {
722722
}
723723

724724
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]')
726726
})
727727
})
728728

0 commit comments

Comments
 (0)