Skip to content

Commit 2361c9e

Browse files
committed
chore: fix snap
1 parent d75846d commit 2361c9e

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

test/__snapshots__/search.test.ts.snap

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
exports[`search > should with namespace 1`] = `
44
[
5-
{
6-
"as": "UiNestedCheckbox",
7-
"from": "src/components/ui/nested/checkbox.vue",
8-
},
9-
{
10-
"as": "UiButton",
11-
"from": "src/components/ui/button.vue",
12-
},
135
{
146
"as": "Avatar",
157
"from": "src/components/global/avatar.vue",
@@ -19,42 +11,42 @@ exports[`search > should with namespace 1`] = `
1911
"from": "src/components/book/index.vue",
2012
},
2113
{
22-
"as": "ComponentC",
23-
"from": "src/components/component-c.vue",
14+
"as": "ComponentA",
15+
"from": "src/components/ComponentA.vue",
2416
},
2517
{
26-
"as": "Recursive",
27-
"from": "src/components/Recursive.vue",
18+
"as": "ComponentAsync",
19+
"from": "src/components/ComponentAsync.vue",
20+
},
21+
{
22+
"as": "ComponentB",
23+
"from": "src/components/ComponentB.vue",
24+
},
25+
{
26+
"as": "ComponentC",
27+
"from": "src/components/component-c.vue",
2828
},
2929
{
3030
"as": "ComponentD",
3131
"from": "src/components/ComponentD.vue",
3232
},
3333
{
34-
"as": "ComponentB",
35-
"from": "src/components/ComponentB.vue",
34+
"as": "Recursive",
35+
"from": "src/components/Recursive.vue",
3636
},
3737
{
38-
"as": "ComponentAsync",
39-
"from": "src/components/ComponentAsync.vue",
38+
"as": "UiButton",
39+
"from": "src/components/ui/button.vue",
4040
},
4141
{
42-
"as": "ComponentA",
43-
"from": "src/components/ComponentA.vue",
42+
"as": "UiNestedCheckbox",
43+
"from": "src/components/ui/nested/checkbox.vue",
4444
},
4545
]
4646
`;
4747

4848
exports[`search > should work 1`] = `
4949
[
50-
{
51-
"as": "Checkbox",
52-
"from": "src/components/ui/nested/checkbox.vue",
53-
},
54-
{
55-
"as": "Button",
56-
"from": "src/components/ui/button.vue",
57-
},
5850
{
5951
"as": "Avatar",
6052
"from": "src/components/global/avatar.vue",
@@ -64,28 +56,36 @@ exports[`search > should work 1`] = `
6456
"from": "src/components/book/index.vue",
6557
},
6658
{
67-
"as": "ComponentC",
68-
"from": "src/components/component-c.vue",
59+
"as": "Button",
60+
"from": "src/components/ui/button.vue",
6961
},
7062
{
71-
"as": "Recursive",
72-
"from": "src/components/Recursive.vue",
63+
"as": "Checkbox",
64+
"from": "src/components/ui/nested/checkbox.vue",
7365
},
7466
{
75-
"as": "ComponentD",
76-
"from": "src/components/ComponentD.vue",
67+
"as": "ComponentA",
68+
"from": "src/components/ComponentA.vue",
69+
},
70+
{
71+
"as": "ComponentAsync",
72+
"from": "src/components/ComponentAsync.vue",
7773
},
7874
{
7975
"as": "ComponentB",
8076
"from": "src/components/ComponentB.vue",
8177
},
8278
{
83-
"as": "ComponentAsync",
84-
"from": "src/components/ComponentAsync.vue",
79+
"as": "ComponentC",
80+
"from": "src/components/component-c.vue",
8581
},
8682
{
87-
"as": "ComponentA",
88-
"from": "src/components/ComponentA.vue",
83+
"as": "ComponentD",
84+
"from": "src/components/ComponentD.vue",
85+
},
86+
{
87+
"as": "Recursive",
88+
"from": "src/components/Recursive.vue",
8989
},
9090
]
9191
`;

test/search.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function cleanup(data: any) {
99
delete e.absolute
1010
e.from = path.relative(root, e.from).replace(/\\/g, '/')
1111
return e
12-
}).sort((a, b) => (a.as as string).localeCompare(b.name))
12+
}).sort((a, b) => (a.as as string).localeCompare(b.as))
1313
}
1414

1515
describe('search', () => {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy