Skip to content

Instantly share code, notes, and snippets.

@shailen-naidoo
Created April 20, 2019 12:41
Show Gist options
  • Save shailen-naidoo/c4d8f903351ab335a2525a8f2ba717b4 to your computer and use it in GitHub Desktop.
Save shailen-naidoo/c4d8f903351ab335a2525a8f2ba717b4 to your computer and use it in GitHub Desktop.
import { createTypeQuery } from './query';
import Types from './types';
const realTypeQuery = createTypeQuery({ _: Types.BooleanNull });
const testTypeQuery = gql`
type Query {
_: ${Types.BooleanNull}
}
`;
test('check if [type Query] has correct fields', (): void => {
expect(realTypeQuery).toBe(testTypeQuery);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment