(opts = {})
| 45 | i18n = common.createMockI18n('en', mockData.messages) |
| 46 | |
| 47 | const 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 | |
| 61 | describe('Components > View > ActionButton.vue', () => { |
| 62 | beforeEach(() => { |