Test fixes

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-05 12:22:45 +03:00
parent 2e04dc691e
commit e1bca55172
6 changed files with 6 additions and 22 deletions

View file

@ -55,7 +55,7 @@ describe('AutoComplete.vue', () => {
expect(wrapper.findAll('.p-autocomplete-item').length).toBe(1);
});
describe('dropdown', () => {
it('dropdown', () => {
it('should have correct custom icon', async () => {
wrapper.setProps({
dropdown: true,
@ -64,13 +64,13 @@ describe('AutoComplete.vue', () => {
await nextTick();
const token = wrapper.find('.p-button-icon');
const token = wrapper.find('.p-button').find('span');
expect(token.classes()).toContain('pi-discord');
});
});
describe('multiple', () => {
it('multiple', () => {
it('should have correct custom icon', async () => {
wrapper.setProps({
multiple: true,