Guest User

Untitled

a guest
Oct 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. const { execute, introspectionQuery, parse } = require('graphql');
  2. const { schema } = require('../index');
  3.  
  4. describe('graphql', () => {
  5. describe('index', () => {
  6. describe('schema', () => {
  7. it('should be a an object', () => {
  8. expect(typeof schema).toBe('object');
  9. });
  10.  
  11. it('should be able to execute the introspectionQuery', () =>
  12. execute(schema, parse(introspectionQuery)));
  13. });
  14. });
  15. });
Add Comment
Please, Sign In to add comment