ScrollTop tests added
parent
0c25cc795c
commit
32c8a680a4
|
@ -0,0 +1,16 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import ScrollTop from './ScrollTop.vue';
|
||||
|
||||
describe('ScrollTop.vue', () => {
|
||||
let wrapper;
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = mount(ScrollTop);
|
||||
});
|
||||
|
||||
it('should exist', async() => {
|
||||
await wrapper.setData({ visible: true });
|
||||
|
||||
expect(wrapper.find('.p-scrolltop.p-component').exists()).toBe(true);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue