We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#maxLength
1 parent 6fea485 commit 39efc7eCopy full SHA for 39efc7e
test/string.test.js
@@ -109,6 +109,16 @@ module.exports.test = function (setup, implType) {
109
deepStrictEqual(body, { data: { createBook: null } })
110
})
111
112
+ it('should pass with null', async function () {
113
+ const { body, statusCode } = await this.request
114
+ .post('/graphql')
115
+ .set('Accept', 'application/json')
116
+ .send({ query, variables: { input: { title: null } } })
117
+
118
+ strictEqual(statusCode, 200)
119
+ deepStrictEqual(body, { data: { createBook: null } })
120
+ })
121
122
it('should fail', async function () {
123
const { body, statusCode } = await this.request
124
.post('/graphql')
0 commit comments