2022-05-09 09:59:31 +00:00
|
|
|
import { expect, it } from 'vitest'
|
2022-05-04 22:41:47 +00:00
|
|
|
import factory from '@/__tests__/factory'
|
2022-05-13 17:58:38 +00:00
|
|
|
import UnitTestCase from '@/__tests__/UnitTestCase'
|
2022-10-13 15:18:47 +00:00
|
|
|
import { CurrentSongKey } from '@/symbols'
|
2022-05-09 09:59:31 +00:00
|
|
|
import FooterExtraControls from './FooterExtraControls.vue'
|
2022-05-04 22:41:47 +00:00
|
|
|
|
2022-05-13 17:58:38 +00:00
|
|
|
new class extends UnitTestCase {
|
2022-05-09 09:59:31 +00:00
|
|
|
protected test () {
|
|
|
|
it('renders', () => {
|
|
|
|
expect(this.render(FooterExtraControls, {
|
2022-07-22 17:27:24 +00:00
|
|
|
global: {
|
|
|
|
stubs: {
|
2022-10-13 15:18:47 +00:00
|
|
|
Equalizer: this.stub('Equalizer'),
|
2022-07-22 17:27:24 +00:00
|
|
|
Volume: this.stub('Volume')
|
2022-10-13 15:18:47 +00:00
|
|
|
},
|
|
|
|
provide: {
|
|
|
|
[CurrentSongKey]: factory<Song>('song', {
|
|
|
|
playback_state: 'Playing'
|
|
|
|
})
|
2022-07-22 17:27:24 +00:00
|
|
|
}
|
2022-05-09 09:59:31 +00:00
|
|
|
}
|
|
|
|
}).html()).toMatchSnapshot()
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|