Skip to content

Commit 2629dda

Browse files
committed
chore: simply and cleanup test
1 parent f1cccee commit 2629dda

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/sort.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ describe('sort', () => {
3636
]
3737
`)
3838

39-
// simulate the watcher adding a components
39+
// simulate the watcher adding a component
4040
ctx.addComponents(resolve(root, 'src/components/book/index.vue').replace(/\\/g, '/'))
41-
ctx.searchGlob()
4241

4342
expect(cleanup(ctx.componentNameMap)).toMatchInlineSnapshot(`
4443
[
@@ -77,10 +76,9 @@ describe('sort', () => {
7776
]
7877
`)
7978

80-
// simulate the watcher adding a components
79+
// simulate the watcher adding some components
8180
ctx.addComponents(resolve(root, 'src/components/ui/button.vue').replace(/\\/g, '/'))
8281
ctx.addComponents(resolve(root, 'src/components/ui/nested/checkbox.vue').replace(/\\/g, '/'))
83-
ctx.searchGlob()
8482

8583
expect(cleanup(ctx.componentNameMap)).toMatchInlineSnapshot(`
8684
[

0 commit comments

Comments
 (0)