@@ -22,15 +22,19 @@ test("inlining-filterable-fragments", async () => {
22
22
"docs-filter-target" ,
23
23
{ filters : { platform : "ios" } } ,
24
24
[
25
- "docs-in-page-link " ,
26
- { targetId : "im-an-ios-specific-fragment " } ,
25
+ "div " ,
26
+ { slot : "content " } ,
27
27
[
28
- "h2" ,
29
- { id : "im-an-ios-specific-fragment" } ,
30
- "I’m an iOS-specific fragment" ,
28
+ "docs-in-page-link" ,
29
+ { targetId : "im-an-ios-specific-fragment" } ,
30
+ [
31
+ "h2" ,
32
+ { id : "im-an-ios-specific-fragment" } ,
33
+ "I’m an iOS-specific fragment" ,
34
+ ] ,
31
35
] ,
36
+ "\n" ,
32
37
] ,
33
- "\n" ,
34
38
] ,
35
39
] ,
36
40
"\n" ,
@@ -41,15 +45,19 @@ test("inlining-filterable-fragments", async () => {
41
45
"docs-filter-target" ,
42
46
{ filters : { platform : "android" } } ,
43
47
[
44
- "docs-in-page-link " ,
45
- { targetId : "im-an-android-specific-fragment " } ,
48
+ "div " ,
49
+ { slot : "content " } ,
46
50
[
47
- "h2" ,
48
- { id : "im-an-android-specific-fragment" } ,
49
- "I’m an Android-specific fragment" ,
51
+ "docs-in-page-link" ,
52
+ { targetId : "im-an-android-specific-fragment" } ,
53
+ [
54
+ "h2" ,
55
+ { id : "im-an-android-specific-fragment" } ,
56
+ "I’m an Android-specific fragment" ,
57
+ ] ,
50
58
] ,
59
+ "\n" ,
51
60
] ,
52
- "\n" ,
53
61
] ,
54
62
] ,
55
63
"\n" ,
@@ -58,9 +66,9 @@ test("inlining-filterable-fragments", async () => {
58
66
// eslint-disable-next-line
59
67
// @ts -ignore
60
68
expect ( ( await import ( "./api/product/a/aa" ) ) . versions ) . toEqual ( {
61
- android : "/product/a/aa? platform= android" ,
62
- ios : "/product/a/aa? platform= ios" ,
63
- js : "/product? platform= js" ,
69
+ android : "/product/a/aa/q/ platform/ android" ,
70
+ ios : "/product/a/aa/q/ platform/ ios" ,
71
+ js : "/product/q/ platform/ js" ,
64
72
} ) ;
65
73
66
74
// eslint-disable-next-line
@@ -73,15 +81,19 @@ test("inlining-filterable-fragments", async () => {
73
81
"docs-filter-target" ,
74
82
{ filters : { platform : "ios" } } ,
75
83
[
76
- "docs-in-page-link " ,
77
- { targetId : "im-an-ios-specific-fragment " } ,
84
+ "div " ,
85
+ { slot : "content " } ,
78
86
[
79
- "h2" ,
80
- { id : "im-an-ios-specific-fragment" } ,
81
- "I’m an iOS-specific fragment" ,
87
+ "docs-in-page-link" ,
88
+ { targetId : "im-an-ios-specific-fragment" } ,
89
+ [
90
+ "h2" ,
91
+ { id : "im-an-ios-specific-fragment" } ,
92
+ "I’m an iOS-specific fragment" ,
93
+ ] ,
82
94
] ,
95
+ "\n" ,
83
96
] ,
84
- "\n" ,
85
97
] ,
86
98
] ,
87
99
"\n" ,
@@ -92,15 +104,19 @@ test("inlining-filterable-fragments", async () => {
92
104
"docs-filter-target" ,
93
105
{ filters : { platform : "android" } } ,
94
106
[
95
- "docs-in-page-link " ,
96
- { targetId : "im-an-android-specific-fragment " } ,
107
+ "div " ,
108
+ { slot : "content " } ,
97
109
[
98
- "h2" ,
99
- { id : "im-an-android-specific-fragment" } ,
100
- "I’m an Android-specific fragment" ,
110
+ "docs-in-page-link" ,
111
+ { targetId : "im-an-android-specific-fragment" } ,
112
+ [
113
+ "h2" ,
114
+ { id : "im-an-android-specific-fragment" } ,
115
+ "I’m an Android-specific fragment" ,
116
+ ] ,
101
117
] ,
118
+ "\n" ,
102
119
] ,
103
- "\n" ,
104
120
] ,
105
121
] ,
106
122
"\n" ,
@@ -111,15 +127,19 @@ test("inlining-filterable-fragments", async () => {
111
127
"docs-filter-target" ,
112
128
{ filters : { platform : "js" } } ,
113
129
[
114
- "docs-in-page-link " ,
115
- { targetId : "im-a-js-specific-fragment " } ,
130
+ "div " ,
131
+ { slot : "content " } ,
116
132
[
117
- "h2" ,
118
- { id : "im-a-js-specific-fragment" } ,
119
- "I’m a JS-specific fragment" ,
133
+ "docs-in-page-link" ,
134
+ { targetId : "im-a-js-specific-fragment" } ,
135
+ [
136
+ "h2" ,
137
+ { id : "im-a-js-specific-fragment" } ,
138
+ "I’m a JS-specific fragment" ,
139
+ ] ,
120
140
] ,
141
+ "\n" ,
121
142
] ,
122
- "\n" ,
123
143
] ,
124
144
] ,
125
145
"\n" ,
@@ -128,8 +148,8 @@ test("inlining-filterable-fragments", async () => {
128
148
// eslint-disable-next-line
129
149
// @ts -ignore
130
150
expect ( ( await import ( "./api/product/a/ab" ) ) . versions ) . toEqual ( {
131
- android : "/product/a/ab? platform= android" ,
132
- ios : "/product/a/ab? platform= ios" ,
133
- js : "/product/a/ab? platform= js" ,
151
+ android : "/product/a/ab/q/ platform/ android" ,
152
+ ios : "/product/a/ab/q/ platform/ ios" ,
153
+ js : "/product/a/ab/q/ platform/ js" ,
134
154
} ) ;
135
155
} ) ;
0 commit comments