Skip to content

Commit

Permalink
test(Dropdown): add test for Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-gitta-moore committed Sep 19, 2022
1 parent 73913a4 commit cb0fdad
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/dropdown/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@ import { mount } from '@vue/test-utils';
import { jest, expect, it } from '@jest/globals';
import { Dropdown, DropdownMenu, DropdownItem } from '../index';

// in order to test transitions, we need to use
// await rAF() after firing transition events.
async function rAF(nextTick) {
return new Promise((res) => {
requestAnimationFrame(() => {
requestAnimationFrame(async () => {
await nextTick();
res(null);
});
});
});
}

// every component needs four parts: props/events/slots/functions.
describe('Dropdown', () => {
const props = {
Expand Down

0 comments on commit cb0fdad

Please sign in to comment.