Skip to content

Commit 9bcf31e

Browse files
committed
adding test for supporting recursive objects
1 parent dcb01b7 commit 9bcf31e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,11 @@ describe('applySchemaCustomDirectives', () => {
183183

184184
expect(applySchemaCustomDirectives(executionSchema)).to.eql(true);
185185
});
186+
187+
it('expected to apply custom directives to schema with recursive nested object', () => {
188+
let schema = `type Test { input: String!, output: String, children:[Test] } type Query { test1: Test, test2: [Test] } schema { query: Query }`;
189+
let executionSchema = buildSchema(schema);
190+
191+
expect(applySchemaCustomDirectives(executionSchema)).to.eql(true);
192+
});
186193
});

0 commit comments

Comments
 (0)