Skip to content

Commit 05dcb21

Browse files
committed
test: rename to generic expand/collapse tests
1 parent 773f59c commit 05dcb21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/nuxt/components/CodeFileTree.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function mountCodeFileTree() {
5959
}
6060

6161
describe('CodeFileTree', () => {
62-
it('keeps a collapsed sibling directory closed when another sibling expands', async () => {
62+
it('expands and collapses a directory when clicked', async () => {
6363
const wrapper = await mountCodeFileTree()
6464

6565
await vi.waitFor(() => {
@@ -73,6 +73,7 @@ describe('CodeFileTree', () => {
7373

7474
await vi.waitFor(() => {
7575
expect(wrapper.text()).not.toContain('constants.d.ts')
76+
expect(wrapper.text()).not.toContain('common.d.ts')
7677
})
7778

7879
const typesButton = findDirButton(wrapper, 'types')

0 commit comments

Comments
 (0)