Skip to content

Commit 16e6ab6

Browse files
committed
test(breadcrumb): improve test coverage
1 parent f3b9504 commit 16e6ab6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { expect, test } from 'vite-plus/test'
2+
import { createApp } from 'vue'
3+
import Breadcrumb, { _BreadcrumbComponent, breadcrumbProps } from '..'
4+
5+
test('breadcrumb plugin', () => {
6+
const app = createApp({}).use(Breadcrumb)
7+
expect(app.component(Breadcrumb.name)).toBeTruthy()
8+
})
9+
10+
test('breadcrumb exports', () => {
11+
expect(_BreadcrumbComponent).toBeTruthy()
12+
expect(breadcrumbProps).toBeTruthy()
13+
})

0 commit comments

Comments
 (0)