composableTest.spec.ts.t 901 B

1234567891011121314
  1. ---
  2. to: "../../<%= withTypeFile ? `app/frontend/${h.componentLibrary(libraryName, h)}/components/${h.componentGenericWitPrefix(name, h)}/__tests__/${h.composableName(h.componentGenericWitPrefix(name, h), h)}.spec.ts` : null %>"
  3. ---
  4. // <%= h.zammadCopyright() %>
  5. import { renderComponent } from '#tests/support/components/index.ts'
  6. import { <%= h.composableName(h.componentGenericWitPrefix(name, h), h) %> } from '#<%= h.componentLibrary(libraryName, false) %>/components/<%= h.componentGenericWitPrefix(name, h) %>/<%= h.composableName(h.componentGenericWitPrefix(name, h), h) %>.ts'
  7. describe('<%= h.composableName(h.componentGenericWitPrefix(name, h), h) %>', () => {
  8. it('test <%= h.composableName(h.componentGenericWitPrefix(name, h), h) %>', () => {
  9. const composable = <%= h.composableName(h.componentGenericWitPrefix(name, h), h) %>()
  10. expect(composable).toHaveBeenCalledOnce()
  11. })
  12. })