UNPKG

@modernpoacher/zashiki-govuk-frontend

Version:
201 lines (175 loc) 3.66 kB
import { expect } from 'chai' import { hasEnum, getEnum, hasOneOf, getOneOf, hasAnyOf, getAnyOf, hasTitle, getTitle, hasDescription, getDescription, hasRequired, getRequired, hasType, getType, hasComponent, getComponent, hasValue, getValue, hasText, getText, hasHtml, getHtml, hasElementsTitle, getElementsTitle } from '@modernpoacher/zashiki-govuk-frontend/transformer/common' describe('#transformer/common', () => { describe('`hasEnum`', () => { it('is a function', () => { expect(hasEnum) .to.be.a('function') }) }) describe('`getEnum`', () => { it('is a function', () => { expect(getEnum) .to.be.a('function') }) }) describe('`hasOneOf`', () => { it('is a function', () => { expect(hasOneOf) .to.be.a('function') }) }) describe('`getOneOf`', () => { it('is a function', () => { expect(getOneOf) .to.be.a('function') }) }) describe('`hasAnyOf`', () => { it('is a function', () => { expect(hasAnyOf) .to.be.a('function') }) }) describe('`getAnyOf`', () => { it('is a function', () => { expect(getAnyOf) .to.be.a('function') }) }) describe('`hasTitle`', () => { it('is a function', () => { expect(hasTitle) .to.be.a('function') }) }) describe('`getTitle`', () => { it('is a function', () => { expect(getTitle) .to.be.a('function') }) }) describe('`hasDescription`', () => { it('is a function', () => { expect(hasDescription) .to.be.a('function') }) }) describe('`getDescription`', () => { it('is a function', () => { expect(getDescription) .to.be.a('function') }) }) describe('`hasRequired`', () => { it('is a function', () => { expect(hasRequired) .to.be.a('function') }) }) describe('`getRequired`', () => { it('is a function', () => { expect(getRequired) .to.be.a('function') }) }) describe('`hasType`', () => { it('is a function', () => { expect(hasType) .to.be.a('function') }) }) describe('`getType`', () => { it('is a function', () => { expect(getType) .to.be.a('function') }) }) describe('`hasComponent`', () => { it('is a function', () => { expect(hasComponent) .to.be.a('function') }) }) describe('`getComponent`', () => { it('is a function', () => { expect(getComponent) .to.be.a('function') }) }) describe('`hasValue`', () => { it('is a function', () => { expect(hasValue) .to.be.a('function') }) }) describe('`getValue`', () => { it('is a function', () => { expect(getValue) .to.be.a('function') }) }) describe('`hasText`', () => { it('is a function', () => { expect(hasText) .to.be.a('function') }) }) describe('`getText`', () => { it('is a function', () => { expect(getText) .to.be.a('function') }) }) describe('`hasHtml`', () => { it('is a function', () => { expect(hasHtml) .to.be.a('function') }) }) describe('`getHtml`', () => { it('is a function', () => { expect(getHtml) .to.be.a('function') }) }) describe('`hasElementsTitle`', () => { it('is a function', () => { expect(hasElementsTitle) .to.be.a('function') }) }) describe('`getElementsTitle`', () => { it('is a function', () => { expect(getElementsTitle) .to.be.a('function') }) }) })