@@ -217,7 +217,7 @@ it("uses globalThis.fetch if available", async () => {
217
217
} ) ;
218
218
219
219
it ( "uses the master ref by default" , async ( ctx ) => {
220
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
220
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
221
221
222
222
mockPrismicRestAPIV2 ( {
223
223
queryResponse,
@@ -231,7 +231,7 @@ it("uses the master ref by default", async (ctx) => {
231
231
} ) ;
232
232
233
233
it ( "supports manual string ref" , async ( ctx ) => {
234
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
234
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
235
235
const ref = "ref" ;
236
236
237
237
mockPrismicRestAPIV2 ( {
@@ -247,7 +247,7 @@ it("supports manual string ref", async (ctx) => {
247
247
} ) ;
248
248
249
249
it ( "supports manual thunk ref" , async ( ctx ) => {
250
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
250
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
251
251
const ref = "ref" ;
252
252
253
253
mockPrismicRestAPIV2 ( {
@@ -264,7 +264,7 @@ it("supports manual thunk ref", async (ctx) => {
264
264
265
265
it ( "uses master ref if ref thunk param returns non-string value" , async ( ctx ) => {
266
266
const repositoryResponse = ctx . mock . api . repository ( ) ;
267
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
267
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
268
268
269
269
mockPrismicRestAPIV2 ( {
270
270
repositoryResponse,
@@ -286,7 +286,7 @@ it("uses browser preview ref if available", async (ctx) => {
286
286
cookie : `io.prismic.preview=${ previewRef } ` ,
287
287
} ;
288
288
289
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
289
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
290
290
291
291
mockPrismicRestAPIV2 ( {
292
292
queryResponse,
@@ -310,7 +310,7 @@ it("uses req preview ref if available", async (ctx) => {
310
310
} ,
311
311
} ;
312
312
313
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
313
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
314
314
315
315
mockPrismicRestAPIV2 ( {
316
316
queryResponse,
@@ -334,7 +334,7 @@ it("supports req with Web APIs", async (ctx) => {
334
334
url : "https://example.com" ,
335
335
} ;
336
336
337
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
337
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
338
338
339
339
mockPrismicRestAPIV2 ( {
340
340
queryResponse,
@@ -355,7 +355,7 @@ it("ignores req without cookies", async (ctx) => {
355
355
} ;
356
356
357
357
const repositoryResponse = ctx . mock . api . repository ( ) ;
358
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
358
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
359
359
360
360
mockPrismicRestAPIV2 ( {
361
361
repositoryResponse,
@@ -379,7 +379,7 @@ it("does not use preview ref if auto previews are disabled", async (ctx) => {
379
379
} ;
380
380
381
381
const repositoryResponse = ctx . mock . api . repository ( ) ;
382
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
382
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
383
383
384
384
const client = createTestClient ( ) ;
385
385
@@ -417,7 +417,7 @@ it("does not use preview ref if auto previews are disabled", async (ctx) => {
417
417
it ( "uses the integration fields ref if the repository provides it" , async ( ctx ) => {
418
418
const repositoryResponse = ctx . mock . api . repository ( ) ;
419
419
repositoryResponse . integrationFieldsRef = ctx . mock . api . ref ( ) . ref ;
420
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
420
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
421
421
422
422
mockPrismicRestAPIV2 ( {
423
423
repositoryResponse,
@@ -439,7 +439,7 @@ it("uses the integration fields ref if the repository provides it", async (ctx)
439
439
it ( "ignores the integration fields ref if the repository provides a null value" , async ( ctx ) => {
440
440
const repositoryResponse = ctx . mock . api . repository ( ) ;
441
441
repositoryResponse . integrationFieldsRef = null ;
442
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
442
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
443
443
444
444
mockPrismicRestAPIV2 ( {
445
445
repositoryResponse,
@@ -457,7 +457,7 @@ it("ignores the integration fields ref if the repository provides a null value",
457
457
} ) ;
458
458
459
459
it ( "uses client-provided routes in queries" , async ( ctx ) => {
460
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
460
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
461
461
462
462
const routes : prismic . Route [ ] = [
463
463
{
@@ -492,7 +492,7 @@ it("uses client-provided routes in queries", async (ctx) => {
492
492
} ) ;
493
493
494
494
it ( "uses client-provided brokenRoute in queries" , async ( ctx ) => {
495
- const queryResponse = prismicM . api . query ( { seed : ctx . meta . name } ) ;
495
+ const queryResponse = prismicM . api . query ( { seed : ctx . task . name } ) ;
496
496
497
497
const brokenRoute = "/404" ;
498
498
0 commit comments