vue-easy-lightbox
Version:
A Vue.js 3.0 image lightbox component with Zoom / Drag / Rotate / Switch
14 lines (11 loc) • 325 B
text/typescript
import { useEasyLightbox } from '.'
describe('useEasyLightbox', () => {
it('initial indexRef = 0', () => {
const { indexRef } = useEasyLightbox()
expect(indexRef.value).toBe(0)
})
it(`initial imgsRef should be '' `, () => {
const { imgsRef } = useEasyLightbox()
expect(imgsRef.value).toBe('')
})
})