@@ -1289,13 +1289,13 @@ describe('Utils - generateManifest', () => {
1289
1289
) ;
1290
1290
} ) ;
1291
1291
1292
- it ( 'should correctly process cacheByQueryString with option "allowlist " and list' , ( ) => {
1292
+ it ( 'should correctly process cacheByQueryString with option "whitelist " and list' , ( ) => {
1293
1293
const azionConfig = {
1294
1294
cache : [
1295
1295
{
1296
1296
name : 'testCache' ,
1297
1297
cacheByQueryString : {
1298
- option : 'allowlist ' ,
1298
+ option : 'whitelist ' ,
1299
1299
list : [ 'param1' , 'param2' ] ,
1300
1300
} ,
1301
1301
} ,
@@ -1308,19 +1308,19 @@ describe('Utils - generateManifest', () => {
1308
1308
const result = jsToJson ( azionConfig ) ;
1309
1309
expect ( result . cache [ 0 ] ) . toEqual (
1310
1310
expect . objectContaining ( {
1311
- cache_by_query_string : 'allowlist ' ,
1311
+ cache_by_query_string : 'whitelist ' ,
1312
1312
query_string_fields : [ 'param1' , 'param2' ] ,
1313
1313
} ) ,
1314
1314
) ;
1315
1315
} ) ;
1316
1316
1317
- it ( 'should throw an error if cacheByQueryString option is "allowlist " or "blocklist " without list' , ( ) => {
1317
+ it ( 'should throw an error if cacheByQueryString option is "whitelist " or "blacklist " without list' , ( ) => {
1318
1318
const azionConfig = {
1319
1319
cache : [
1320
1320
{
1321
1321
name : 'testCache' ,
1322
1322
cacheByQueryString : {
1323
- option : 'allowlist ' ,
1323
+ option : 'whitelist ' ,
1324
1324
} ,
1325
1325
} ,
1326
1326
] ,
@@ -1330,17 +1330,17 @@ describe('Utils - generateManifest', () => {
1330
1330
} ;
1331
1331
1332
1332
expect ( ( ) => jsToJson ( azionConfig ) ) . toThrow (
1333
- "The 'list' field is required when 'option' is 'allowlist ' or 'blocklist '." ,
1333
+ "The 'list' field is required when 'option' is 'whitelist ' or 'blacklist '." ,
1334
1334
) ;
1335
1335
} ) ;
1336
1336
1337
- it ( 'should correctly process cacheByQueryString with option "blocklist " and list' , ( ) => {
1337
+ it ( 'should correctly process cacheByQueryString with option "blacklist " and list' , ( ) => {
1338
1338
const azionConfig = {
1339
1339
cache : [
1340
1340
{
1341
1341
name : 'testCache' ,
1342
1342
cacheByQueryString : {
1343
- option : 'blocklist ' ,
1343
+ option : 'blacklist ' ,
1344
1344
list : [ 'param1' , 'param2' ] ,
1345
1345
} ,
1346
1346
} ,
@@ -1353,7 +1353,7 @@ describe('Utils - generateManifest', () => {
1353
1353
const result = jsToJson ( azionConfig ) ;
1354
1354
expect ( result . cache [ 0 ] ) . toEqual (
1355
1355
expect . objectContaining ( {
1356
- cache_by_query_string : 'blocklist ' ,
1356
+ cache_by_query_string : 'blacklist ' ,
1357
1357
query_string_fields : [ 'param1' , 'param2' ] ,
1358
1358
} ) ,
1359
1359
) ;
@@ -1406,13 +1406,13 @@ describe('Utils - generateManifest', () => {
1406
1406
) ;
1407
1407
} ) ;
1408
1408
1409
- it ( 'should correctly process cacheByCookie with option "allowlist " and list' , ( ) => {
1409
+ it ( 'should correctly process cacheByCookie with option "whitelist " and list' , ( ) => {
1410
1410
const azionConfig = {
1411
1411
cache : [
1412
1412
{
1413
1413
name : 'testCache' ,
1414
1414
cacheByCookie : {
1415
- option : 'allowlist ' ,
1415
+ option : 'whitelist ' ,
1416
1416
list : [ 'cookie1' , 'cookie2' ] ,
1417
1417
} ,
1418
1418
} ,
@@ -1425,19 +1425,19 @@ describe('Utils - generateManifest', () => {
1425
1425
const result = jsToJson ( azionConfig ) ;
1426
1426
expect ( result . cache [ 0 ] ) . toEqual (
1427
1427
expect . objectContaining ( {
1428
- cache_by_cookie : 'allowlist ' ,
1428
+ cache_by_cookie : 'whitelist ' ,
1429
1429
cookie_names : [ 'cookie1' , 'cookie2' ] ,
1430
1430
} ) ,
1431
1431
) ;
1432
1432
} ) ;
1433
1433
1434
- it ( 'should throw an error if cacheByCookie option is "allowlist " or "blocklist " without list' , ( ) => {
1434
+ it ( 'should throw an error if cacheByCookie option is "whitelist " or "blacklist " without list' , ( ) => {
1435
1435
const azionConfig = {
1436
1436
cache : [
1437
1437
{
1438
1438
name : 'testCache' ,
1439
1439
cacheByCookie : {
1440
- option : 'allowlist ' ,
1440
+ option : 'whitelist ' ,
1441
1441
} ,
1442
1442
} ,
1443
1443
] ,
@@ -1447,17 +1447,17 @@ describe('Utils - generateManifest', () => {
1447
1447
} ;
1448
1448
1449
1449
expect ( ( ) => jsToJson ( azionConfig ) ) . toThrow (
1450
- "The 'list' field is required when 'option' is 'allowlist ' or 'blocklist '." ,
1450
+ "The 'list' field is required when 'option' is 'whitelist ' or 'blacklist '." ,
1451
1451
) ;
1452
1452
} ) ;
1453
1453
1454
- it ( 'should correctly process cacheByCookie with option "blocklist " and list' , ( ) => {
1454
+ it ( 'should correctly process cacheByCookie with option "blacklist " and list' , ( ) => {
1455
1455
const azionConfig = {
1456
1456
cache : [
1457
1457
{
1458
1458
name : 'testCache' ,
1459
1459
cacheByCookie : {
1460
- option : 'blocklist ' ,
1460
+ option : 'blacklist ' ,
1461
1461
list : [ 'cookie1' , 'cookie2' ] ,
1462
1462
} ,
1463
1463
} ,
@@ -1470,7 +1470,7 @@ describe('Utils - generateManifest', () => {
1470
1470
const result = jsToJson ( azionConfig ) ;
1471
1471
expect ( result . cache [ 0 ] ) . toEqual (
1472
1472
expect . objectContaining ( {
1473
- cache_by_cookie : 'blocklist ' ,
1473
+ cache_by_cookie : 'blacklist ' ,
1474
1474
cookie_names : [ 'cookie1' , 'cookie2' ] ,
1475
1475
} ) ,
1476
1476
) ;
0 commit comments