Skip to content

Commit

Permalink
Add test for empty interfaces case
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-marcacci committed Aug 16, 2019
1 parent 2570536 commit dfc2da9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utilities/__tests__/buildASTSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ describe('Schema Builder', () => {
const sdl = dedent`
type EmptyType
`;

const definition = parse(sdl).definitions[0];
expect(
definition.kind === 'InterfaceTypeDefinition' && definition.interfaces,
).to.equal([], 'The interfaces property must be an empty array.');

expect(cycleSDL(sdl)).to.equal(sdl);
});

Expand Down

0 comments on commit dfc2da9

Please sign in to comment.