believer/movies-graphql-postgres

View on GitHub
lib/graphql/__tests__/schema.spec.js

Summary

Maintainability
A
1 hr
Test Coverage
require('../schema')
const { makeExecutableSchema } = require('graphql-tools')

describe('#schema', () => {
  it('should set type definitions', () => {
    expect(makeExecutableSchema.mock.calls[0][0].typeDefs).toMatchSnapshot()
  })

  it('should set resolvers', () => {
    expect(makeExecutableSchema.mock.calls[0][0].resolvers).toMatchSnapshot()
  })
})