mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
28 lines
636 B
JavaScript
28 lines
636 B
JavaScript
import dashboardPlugin from './dashboard-plugin.js'
|
|
import Vue from 'vue'
|
|
|
|
import GlobalComponents from './globalComponents'
|
|
import GlobalDirectives from './globalDirectives'
|
|
|
|
import './assets/scss/gradido.scss'
|
|
|
|
jest.mock('./globalComponents')
|
|
jest.mock('./globalDirectives')
|
|
|
|
jest.mock('vue')
|
|
|
|
const vueUseMock = jest.fn()
|
|
Vue.use = vueUseMock
|
|
|
|
describe('dashboard plugin', () => {
|
|
dashboardPlugin.install(Vue)
|
|
|
|
it('installs the global components', () => {
|
|
expect(vueUseMock).toBeCalledWith(GlobalComponents)
|
|
})
|
|
|
|
it('installs the global directives', () => {
|
|
expect(vueUseMock).toBeCalledWith(GlobalDirectives)
|
|
})
|
|
})
|