primevue-mirror/components/scrolltop/ScrollTop.spec.js

16 lines
379 B
JavaScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
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);
});
});