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

Function createMessage

components/message/tests/message.spec.tsx:13–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const TEXT = 'Text'
12
13function createMessage() {
14 const Message = new MessageManager()
15
16 mount({
17 setup() {
18 const instance = getCurrentInstance()
19 const app = instance?.appContext.app
20
21 app?.use(Message)
22
23 return () => <div></div>
24 },
25 })
26
27 return Message
28}
29
30async function messageOpened() {
31 await nextTick()

Callers 1

message.spec.tsxFile · 0.85

Calls 1

mountFunction · 0.50

Tested by

no test coverage detected