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

Function factory

ui/tests/unit/components/view/ActionButton.spec.js:47–59  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

45i18n = common.createMockI18n('en', mockData.messages)
46
47const factory = (opts = {}) => {
48 router = opts.router || router
49 store = opts.store || store
50 i18n = opts.i18n || i18n
51
52 return common.createFactory(ActionButton, {
53 router,
54 store,
55 i18n,
56 props: opts.props || {},
57 data: opts.data || {}
58 })
59}
60
61describe('Components > View > ActionButton.vue', () => {
62 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected