Skip to content

Commit 39efc7e

Browse files
chore: #maxLength null value test (#184)
Co-authored-by: James Mortemore <[email protected]>
1 parent 6fea485 commit 39efc7e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/string.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ module.exports.test = function (setup, implType) {
109109
deepStrictEqual(body, { data: { createBook: null } })
110110
})
111111

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+
112122
it('should fail', async function () {
113123
const { body, statusCode } = await this.request
114124
.post('/graphql')

0 commit comments

Comments
 (0)