Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { execute, introspectionQuery, parse } = require('graphql');
- const { schema } = require('../index');
- describe('graphql', () => {
- describe('index', () => {
- describe('schema', () => {
- it('should be a an object', () => {
- expect(typeof schema).toBe('object');
- });
- it('should be able to execute the introspectionQuery', () =>
- execute(schema, parse(introspectionQuery)));
- });
- });
- });
Add Comment
Please, Sign In to add comment