import { mockRedwoodDirective, getDirectiveName } from '@redwoodjs/testing/api'

import  ${camelName} from './${camelName}'

describe('${camelName} directive', () => {
  it('declares the directive sdl as schema, with the correct name', () => {
    expect(${camelName}.schema).toBeTruthy()
    expect(getDirectiveName(${camelName}.schema)).toBe('${camelName}')
  })


  it('has a ${camelName} throws an error if validation does not pass', () => {
    const mockExecution = mockRedwoodDirective(${camelName}, {})

    expect(mockExecution).toThrowError('Implementation missing for ${camelName}')
  })
})
