@@ -170,22 +170,25 @@ describe('app dir next-font', () => {
170
170
expect ( $ ( 'link[as="font"]' ) . length ) . toBe ( 3 )
171
171
expect ( $ ( 'link[as="font"]' ) . get ( 0 ) . attribs ) . toEqual ( {
172
172
as : 'font' ,
173
- crossorigin : '' ,
174
- href : '/_next/static/media/e9b9dc0d8ba35f48.p.woff2' ,
173
+ crossorigin : 'anonymous' ,
174
+ "data-next-font" : 'size-adjust' ,
175
+ href : '/_next/static/media/b2104791981359ae-s.p.woff2' ,
175
176
rel : 'preload' ,
176
177
type : 'font/woff2' ,
177
178
} )
178
179
expect ( $ ( 'link[as="font"]' ) . get ( 1 ) . attribs ) . toEqual ( {
179
180
as : 'font' ,
180
- crossorigin : '' ,
181
- href : '/_next/static/media/b61859a50be14c53.p.woff2' ,
181
+ crossorigin : 'anonymous' ,
182
+ "data-next-font" : 'size-adjust' ,
183
+ href : '/_next/static/media/b61859a50be14c53-s.p.woff2' ,
182
184
rel : 'preload' ,
183
185
type : 'font/woff2' ,
184
186
} )
185
187
expect ( $ ( 'link[as="font"]' ) . get ( 2 ) . attribs ) . toEqual ( {
186
188
as : 'font' ,
187
- crossorigin : '' ,
188
- href : '/_next/static/media/b2104791981359ae.p.woff2' ,
189
+ crossorigin : 'anonymous' ,
190
+ "data-next-font" : 'size-adjust' ,
191
+ href : '/_next/static/media/b2104791981359ae-s.p.woff2' ,
189
192
rel : 'preload' ,
190
193
type : 'font/woff2' ,
191
194
} )
@@ -202,22 +205,25 @@ describe('app dir next-font', () => {
202
205
// From root layout
203
206
expect ( $ ( 'link[as="font"]' ) . get ( 0 ) . attribs ) . toEqual ( {
204
207
as : 'font' ,
205
- crossorigin : '' ,
206
- href : '/_next/static/media/e9b9dc0d8ba35f48.p.woff2' ,
208
+ crossorigin : 'anonymous' ,
209
+ "data-next-font" : 'size-adjust' ,
210
+ href : '/_next/static/media/e1053f04babc7571-s.p.woff2' ,
207
211
rel : 'preload' ,
208
212
type : 'font/woff2' ,
209
213
} )
210
214
211
215
expect ( $ ( 'link[as="font"]' ) . get ( 1 ) . attribs ) . toEqual ( {
212
216
as : 'font' ,
213
- crossorigin : '' ,
217
+ crossorigin : 'anonymous' ,
218
+ "data-next-font" : 'size-adjust' ,
214
219
href : '/_next/static/media/e1053f04babc7571.p.woff2' ,
215
220
rel : 'preload' ,
216
221
type : 'font/woff2' ,
217
222
} )
218
223
expect ( $ ( 'link[as="font"]' ) . get ( 2 ) . attribs ) . toEqual ( {
219
224
as : 'font' ,
220
- crossorigin : '' ,
225
+ crossorigin : 'anonymous' ,
226
+ "data-next-font" : 'size-adjust' ,
221
227
href : '/_next/static/media/feab2c68f2a8e9a4.p.woff2' ,
222
228
rel : 'preload' ,
223
229
type : 'font/woff2' ,
@@ -235,15 +241,17 @@ describe('app dir next-font', () => {
235
241
// From root layout
236
242
expect ( $ ( 'link[as="font"]' ) . get ( 0 ) . attribs ) . toEqual ( {
237
243
as : 'font' ,
238
- crossorigin : '' ,
239
- href : '/_next/static/media/e9b9dc0d8ba35f48.p.woff2' ,
244
+ crossorigin : 'anonymous' ,
245
+ "data-next-font" : 'size-adjust' ,
246
+ href : '/_next/static/media/75c5faeeb9c86969-s.p.woff2' ,
240
247
rel : 'preload' ,
241
248
type : 'font/woff2' ,
242
249
} )
243
250
244
251
expect ( $ ( 'link[as="font"]' ) . get ( 1 ) . attribs ) . toEqual ( {
245
252
as : 'font' ,
246
- crossorigin : '' ,
253
+ crossorigin : 'anonymous' ,
254
+ "data-next-font" : 'size-adjust' ,
247
255
href : '/_next/static/media/75c5faeeb9c86969.p.woff2' ,
248
256
rel : 'preload' ,
249
257
type : 'font/woff2' ,
@@ -261,15 +269,17 @@ describe('app dir next-font', () => {
261
269
// From root layout
262
270
expect ( $ ( 'link[as="font"]' ) . get ( 0 ) . attribs ) . toEqual ( {
263
271
as : 'font' ,
264
- crossorigin : '' ,
265
- href : '/_next/static/media/e9b9dc0d8ba35f48.p.woff2' ,
272
+ crossorigin : 'anonymous' ,
273
+ "data-next-font" : 'size-adjust' ,
274
+ href : '/_next/static/media/568e4c6d8123c4d6-s.p.woff2' ,
266
275
rel : 'preload' ,
267
276
type : 'font/woff2' ,
268
277
} )
269
278
270
279
expect ( $ ( 'link[as="font"]' ) . get ( 1 ) . attribs ) . toEqual ( {
271
280
as : 'font' ,
272
- crossorigin : '' ,
281
+ crossorigin : 'anonymous' ,
282
+ "data-next-font" : 'size-adjust' ,
273
283
href : '/_next/static/media/568e4c6d8123c4d6.p.woff2' ,
274
284
rel : 'preload' ,
275
285
type : 'font/woff2' ,
0 commit comments