Initial commit

This commit is contained in:
vbuglov committed 2024-03-05 11:36:21 +03:00
commit bf2f060b94
212 files changed
+100448

No files matched your search

@@ -0,0 +1,32 @@
import {test, describe, expect, vi } from 'vitest'
import { mount} from '@vue/test-utils'
import VTabulator from '@molecules/Tabulator/VTabulator.vue';
describe("tests VTabulator component", () => {
vi.mock('tabulator-tables', () => {
const Tabulator = vi.fn(() => {
return {
getHtml: () => {
return '<div>test</div>'
}
}
})
return {
__esModule: true,
TabulatorFull: Tabulator
}
})
test('exist test of VTabulator', async () => {
const wrapper = mount(VTabulator, {
shallow: true,
})
expect(wrapper.exists()).toBe(true)
})
})
@@ -0,0 +1,4 @@
class Tabulator {
}
export default Tabulator;