mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
25 lines
526 B
JavaScript
25 lines
526 B
JavaScript
import { shallowMount, createLocalVue } from '@vue/test-utils'
|
|
import RelativeDateTime from './index.vue'
|
|
|
|
import Filters from '../../plugins/vue-filters.js'
|
|
const localVue = createLocalVue()
|
|
localVue.use(Filters)
|
|
|
|
describe('RelativeDateTime', () => {
|
|
let wrapper
|
|
|
|
beforeEach(() => {
|
|
wrapper = shallowMount(RelativeDateTime, {
|
|
localVue,
|
|
propsData: {
|
|
dateTime: new Date()
|
|
}
|
|
})
|
|
})
|
|
|
|
it('renders', () => {
|
|
console.log(wrapper.html())
|
|
expect(wrapper.is('span')).toBe(true)
|
|
})
|
|
})
|