koel/resources/assets/js/__tests__/stubs.ts

21 lines
484 B
TypeScript
Raw Normal View History

import { Ref, ref } from 'vue'
import { noop } from '@/utils'
import MessageToaster from '@/components/ui/MessageToaster.vue'
import DialogBox from '@/components/ui/DialogBox.vue'
2022-10-10 07:00:30 +00:00
export const MessageToasterStub: Ref<InstanceType<typeof MessageToaster>> = ref({
info: noop,
success: noop,
warning: noop,
error: noop
})
2022-10-10 07:00:30 +00:00
export const DialogBoxStub: Ref<InstanceType<typeof DialogBox>> = ref({
info: noop,
success: noop,
warning: noop,
error: noop,
confirm: noop
})