MCPcopy
hub / github.com/vexip-ui/vexip-ui / createLoading

Function createLoading

components/loading/tests/loading.spec.tsx:10–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8vi.useFakeTimers()
9
10function createLoading() {
11 const Loading = new LoadingManager()
12
13 mount({
14 setup() {
15 const instance = getCurrentInstance()
16 const app = instance?.appContext.app
17
18 app?.use(Loading)
19
20 return () => <div></div>
21 },
22 })
23
24 return Loading
25}
26
27describe('Loading', () => {
28 it('render', () => {

Callers 1

loading.spec.tsxFile · 0.85

Calls 1

mountFunction · 0.50

Tested by

no test coverage detected