@@ -26,7 +26,7 @@ module.exports.test = function (setup, implType) {
26
26
title: [Int!] @constraint(minItems: 3)
27
27
}`
28
28
29
- this . request = await setup ( this . typeDefs )
29
+ this . request = await setup ( { typeDefs : this . typeDefs } )
30
30
} )
31
31
32
32
it ( 'should pass' , async function ( ) {
@@ -86,7 +86,7 @@ module.exports.test = function (setup, implType) {
86
86
title: [Int!] @constraint(maxItems: 2)
87
87
}`
88
88
89
- this . request = await setup ( this . typeDefs )
89
+ this . request = await setup ( { typeDefs : this . typeDefs } )
90
90
} )
91
91
92
92
it ( 'should pass' , async function ( ) {
@@ -140,7 +140,7 @@ module.exports.test = function (setup, implType) {
140
140
createBook(input: [Int] @constraint(minItems: 3)): Book
141
141
}`
142
142
143
- this . request = await setup ( this . typeDefs )
143
+ this . request = await setup ( { typeDefs : this . typeDefs } )
144
144
} )
145
145
146
146
it ( 'should pass' , async function ( ) {
@@ -212,7 +212,7 @@ module.exports.test = function (setup, implType) {
212
212
createBook(input: [Int] @constraint(maxItems: 2, max: 100)): Book
213
213
}`
214
214
215
- this . request = await setup ( this . typeDefs )
215
+ this . request = await setup ( { typeDefs : this . typeDefs } )
216
216
} )
217
217
218
218
it ( 'should pass' , async function ( ) {
@@ -307,7 +307,7 @@ module.exports.test = function (setup, implType) {
307
307
createBook(input: [ID]! @constraint(minItems: 3)): Book
308
308
}`
309
309
310
- this . request = await setup ( this . typeDefs )
310
+ this . request = await setup ( { typeDefs : this . typeDefs } )
311
311
} )
312
312
313
313
it ( 'should pass' , async function ( ) {
@@ -365,7 +365,7 @@ module.exports.test = function (setup, implType) {
365
365
title: String @constraint(maxLength: 2)
366
366
}
367
367
`
368
- this . request = await setup ( this . typeDefs )
368
+ this . request = await setup ( { typeDefs : this . typeDefs } )
369
369
} )
370
370
371
371
it ( 'should pass' , async function ( ) {
0 commit comments