MCPcopy Create free account
hub / github.com/apache/cloudstack / factory

Function factory

ui/tests/unit/components/widgets/Status.spec.js:29–39  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

27i18n = common.createMockI18n('en', mockData.messages)
28
29const factory = (opts = {}) => {
30 router = opts.router || router
31 i18n = opts.i18n || i18n
32
33 return common.createFactory(Status, {
34 router,
35 i18n,
36 props: opts.props || {},
37 data: opts.data || {}
38 })
39}
40
41describe('Components > Widgets > Status.vue', () => {
42 describe('Methods', () => {

Callers 1

Status.spec.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected