koel/resources/assets/js/components/ui/AppleMusicButton.spec.ts

16 lines
395 B
TypeScript
Raw Normal View History

import { expect, it } from 'vitest'
2022-05-13 17:58:38 +00:00
import UnitTestCase from '@/__tests__/UnitTestCase'
import AppleMusicButton from './AppleMusicButton.vue'
2022-05-13 17:58:38 +00:00
new class extends UnitTestCase {
protected test () {
it('renders', () => {
expect(this.render(AppleMusicButton, {
props: {
url: 'https://music.apple.com/buy-nao',
},
}).html()).toMatchSnapshot()
})
}
}