mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
32
components/lib/ripple/Ripple.spec.js
Normal file
32
components/lib/ripple/Ripple.spec.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
import { config, mount } from '@vue/test-utils';
|
||||
import Ripple from './Ripple';
|
||||
|
||||
config.global.mocks = {
|
||||
$primevue: {
|
||||
config: {
|
||||
ripple: true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
config.global.directives = {
|
||||
Ripple
|
||||
};
|
||||
|
||||
describe('Ripple', () => {
|
||||
it('should exist', async () => {
|
||||
const wrapper = mount({
|
||||
template: `
|
||||
<div class="card p-ripple" v-ripple>Default</div>
|
||||
`
|
||||
});
|
||||
|
||||
const card = wrapper.find('.card');
|
||||
|
||||
expect(wrapper.find('.p-ink').exists()).toBe(true);
|
||||
|
||||
await card.trigger('mousedown');
|
||||
|
||||
expect(wrapper.find('.p-ink').classes()).toContain('p-ink-active');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue