@@ -166,63 +166,6 @@ exports[`gatsby-plugin-sharp fixed does not warn when the requested width is equ
166
166
}
167
167
` ;
168
168
169
- exports [` gatsby-plugin-sharp fixed should give the same result with createJob as with createJobV2 1` ] = `
170
- [MockFunction] {
171
- " calls" : Array [
172
- Array [
173
- Object {
174
- " args" : Object {
175
- " isLazy" : false ,
176
- " operations" : Array [
177
- Object {
178
- " args" : Object {
179
- " toFormat" : " png" ,
180
- " width" : 1 ,
181
- },
182
- " outputPath" : " 89172/test.png" ,
183
- },
184
- Object {
185
- " args" : Object {
186
- " toFormat" : " png" ,
187
- " width" : 2 ,
188
- },
189
- " outputPath" : " 002c7/test.png" ,
190
- },
191
- Object {
192
- " args" : Object {
193
- " toFormat" : " png" ,
194
- " width" : 2 ,
195
- },
196
- " outputPath" : " 002c7/test.png" ,
197
- },
198
- ],
199
- " pluginOptions" : Object {
200
- " base64Width" : 20 ,
201
- " defaultQuality" : 50 ,
202
- " failOnError" : true ,
203
- " forceBase64Format" : " " ,
204
- " lazyImageGeneration" : true ,
205
- " stripMetadata" : true ,
206
- " useMozJpeg" : false ,
207
- },
208
- },
209
- " inputPaths" : Array [
210
- " <PROJECT_ROOT>/packages/gatsby-plugin-sharp/src/__tests__/images/test.png" ,
211
- ],
212
- " name" : " IMAGE_PROCESSING" ,
213
- " outputDir" : " <PROJECT_ROOT>/public/static/1234" ,
214
- },
215
- ],
216
- ],
217
- " results" : Array [
218
- Object {
219
- " type" : " return" ,
220
- " value" : Promise {},
221
- },
222
- ],
223
- }
224
- ` ;
225
-
226
169
exports [` gatsby-plugin-sharp fixed warns when the requested width is greater than the image width 1` ] = `
227
170
[MockFunction] {
228
171
" calls" : Array [
@@ -1085,23 +1028,6 @@ Object {
1085
1028
}
1086
1029
` ;
1087
1030
1088
- exports [` gatsby-plugin-sharp fluid includes responsive image properties, e.g. sizes, srcset, etc. with the createJob api 1` ] = `
1089
- Object {
1090
- " aspectRatio" : 1 ,
1091
- " base64" : " data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAACXBIWXMAAAsTAAALEwEAmpwYAAABP0lEQVQ4y2P4r8ZANmKgvuZ/agy/VaHojyopmv+CNf/XQCCoCEHNf1VBqv+oM5yVY1giwbBakuG2AkjknzoW/eh2/tdgOCPHYM7OwMDAwAgiGFgYGMJ5GF4og43ApRmuk58JqpMJRjIwMBizMbxTZviPaj8ihCD6rThAStkgljJATWEHc3P5wT5SxdD8B2ztERmQIiYGdAAxSpaF4T2q5TDN4HCaLgZSxMyAE1yQgwY+Fs1zxQloviSPTTMktM7JgVzIiKEH4hElFoavKogAQgltiJA3F0gdOyPC58yw8GsUwhFgUMvVGR4oMqiwogQbhOHLxfBLDcVabIlEneGxEkMMLwMvTLc4M0OdEMN3VfRIxp48/6mDnPdCieGkHCiRflRh+K+JPXljz1IQJ0AzhjrRGQPZC5As+ZeuhQGRmgHU8mT34D0STQAAAABJRU5ErkJggg==" ,
1092
- " density" : 72 ,
1093
- " originalImg" : " /static/1234/7e516/test.png" ,
1094
- " originalName" : " test.png" ,
1095
- " presentationHeight" : 100 ,
1096
- " presentationWidth" : 100 ,
1097
- " sizes" : " (max-width: 100px) 100vw, 100px" ,
1098
- " src" : " /static/1234/7e516/test.png" ,
1099
- " srcSet" : " /static/1234/7e516/test.png 100w" ,
1100
- " srcSetType" : " image/png" ,
1101
- " tracedSVG" : undefined ,
1102
- }
1103
- ` ;
1104
-
1105
1031
exports [` gatsby-plugin-sharp fluid infers the maxWidth if only maxHeight is given 1` ] = `
1106
1032
[MockFunction] {
1107
1033
" calls" : Array [
@@ -1358,49 +1284,6 @@ exports[`gatsby-plugin-sharp fluid reject any breakpoints larger than the origin
1358
1284
}
1359
1285
` ;
1360
1286
1361
- exports [` gatsby-plugin-sharp fluid should give the same result with createJob as with createJobV2 1` ] = `
1362
- [MockFunction] {
1363
- " calls" : Array [
1364
- Array [
1365
- Object {
1366
- " args" : Object {
1367
- " isLazy" : false ,
1368
- " operations" : Array [
1369
- Object {
1370
- " args" : Object {
1371
- " toFormat" : " png" ,
1372
- " width" : 100 ,
1373
- },
1374
- " outputPath" : " 7e516/test.png" ,
1375
- },
1376
- ],
1377
- " pluginOptions" : Object {
1378
- " base64Width" : 20 ,
1379
- " defaultQuality" : 50 ,
1380
- " failOnError" : true ,
1381
- " forceBase64Format" : " " ,
1382
- " lazyImageGeneration" : true ,
1383
- " stripMetadata" : true ,
1384
- " useMozJpeg" : false ,
1385
- },
1386
- },
1387
- " inputPaths" : Array [
1388
- " <PROJECT_ROOT>/packages/gatsby-plugin-sharp/src/__tests__/images/test.png" ,
1389
- ],
1390
- " name" : " IMAGE_PROCESSING" ,
1391
- " outputDir" : " <PROJECT_ROOT>/public/static/1234" ,
1392
- },
1393
- ],
1394
- ],
1395
- " results" : Array [
1396
- Object {
1397
- " type" : " return" ,
1398
- " value" : Promise {},
1399
- },
1400
- ],
1401
- }
1402
- ` ;
1403
-
1404
1287
exports [` gatsby-plugin-sharp fluid should throw if maxWidth is less than 1 1` ] = ` [MockFunction]` ;
1405
1288
1406
1289
exports [` gatsby-plugin-sharp fluid should throw on srcSet breakpoints less than 1 1` ] = ` [MockFunction]` ;
@@ -1416,97 +1299,7 @@ Object {
1416
1299
}
1417
1300
` ;
1418
1301
1419
- exports [` gatsby-plugin-sharp queueImageResizing with createJob file name works with spaces & special characters createJob 1` ] = `
1420
- [MockFunction] {
1421
- " calls" : Array [
1422
- Array [
1423
- Object {
1424
- " args" : Object {
1425
- " isLazy" : false ,
1426
- " operations" : Array [
1427
- Object {
1428
- " args" : Object {
1429
- " toFormat" : " png" ,
1430
- " width" : 3 ,
1431
- },
1432
- " outputPath" : " 4a20d/spaces and '\\ " @#$ % ^& ,.png",
1433
- },
1434
- ],
1435
- " pluginOptions" : Object {
1436
- " base64Width" : 20 ,
1437
- " defaultQuality" : 50 ,
1438
- " failOnError" : true ,
1439
- " forceBase64Format" : " " ,
1440
- " lazyImageGeneration" : true ,
1441
- " stripMetadata" : true ,
1442
- " useMozJpeg" : false ,
1443
- },
1444
- },
1445
- " inputPaths" : Array [
1446
- " <PROJECT_ROOT>/packages/gatsby-plugin-sharp/src/__tests__/images/144-density.png" ,
1447
- ],
1448
- " name" : " IMAGE_PROCESSING" ,
1449
- " outputDir" : " <PROJECT_ROOT>/public/static/1234" ,
1450
- },
1451
- Object {},
1452
- undefined ,
1453
- ],
1454
- ],
1455
- " results" : Array [
1456
- Object {
1457
- " type" : " return" ,
1458
- " value" : Promise {},
1459
- },
1460
- ],
1461
- }
1462
- ` ;
1463
-
1464
- exports [` gatsby-plugin-sharp queueImageResizing with createJob should round height when auto-calculated createJob 1` ] = `
1465
- [MockFunction] {
1466
- " calls" : Array [
1467
- Array [
1468
- Object {
1469
- " args" : Object {
1470
- " isLazy" : false ,
1471
- " operations" : Array [
1472
- Object {
1473
- " args" : Object {
1474
- " toFormat" : " png" ,
1475
- " width" : 3 ,
1476
- },
1477
- " outputPath" : " 4a20d/test.png" ,
1478
- },
1479
- ],
1480
- " pluginOptions" : Object {
1481
- " base64Width" : 20 ,
1482
- " defaultQuality" : 50 ,
1483
- " failOnError" : true ,
1484
- " forceBase64Format" : " " ,
1485
- " lazyImageGeneration" : true ,
1486
- " stripMetadata" : true ,
1487
- " useMozJpeg" : false ,
1488
- },
1489
- },
1490
- " inputPaths" : Array [
1491
- " <PROJECT_ROOT>/packages/gatsby-plugin-sharp/src/__tests__/images/144-density.png" ,
1492
- ],
1493
- " name" : " IMAGE_PROCESSING" ,
1494
- " outputDir" : " <PROJECT_ROOT>/public/static/1234" ,
1495
- },
1496
- Object {},
1497
- undefined ,
1498
- ],
1499
- ],
1500
- " results" : Array [
1501
- Object {
1502
- " type" : " return" ,
1503
- " value" : Promise {},
1504
- },
1505
- ],
1506
- }
1507
- ` ;
1508
-
1509
- exports [` gatsby-plugin-sharp queueImageResizing with createJobV2 file name works with spaces & special characters createJobV2 1` ] = `
1302
+ exports [` gatsby-plugin-sharp queueImageResizing file name works with spaces & special characters createJobV2 1` ] = `
1510
1303
[MockFunction] {
1511
1304
" calls" : Array [
1512
1305
Array [
@@ -1549,7 +1342,7 @@ exports[`gatsby-plugin-sharp queueImageResizing with createJobV2 file name works
1549
1342
}
1550
1343
` ;
1551
1344
1552
- exports [` gatsby-plugin-sharp queueImageResizing with createJobV2 should round height when auto-calculated createJobV2 1` ] = `
1345
+ exports [` gatsby-plugin-sharp queueImageResizing should round height when auto-calculated createJobV2 1` ] = `
1553
1346
[MockFunction] {
1554
1347
" calls" : Array [
1555
1348
Array [
0 commit comments