@@ -376,6 +376,9 @@ describe('CompileFunctions', () => {
376
376
handler : 'func1' ,
377
377
environment : {
378
378
TEST_VAR : 'test' ,
379
+ INT_VAR : 1 ,
380
+ FLOAT_VAR : 3.141 ,
381
+ BOOL_VAR : true ,
379
382
} ,
380
383
events : [ { http : 'foo' } ] ,
381
384
} ,
@@ -393,6 +396,9 @@ describe('CompileFunctions', () => {
393
396
availableMemoryMb : 256 ,
394
397
environmentVariables : {
395
398
TEST_VAR : 'test' ,
399
+ INT_VAR : '1' ,
400
+ FLOAT_VAR : '3.141' ,
401
+ BOOL_VAR : 'true' ,
396
402
} ,
397
403
timeout : '60s' ,
398
404
sourceArchiveUrl : 'gs://sls-my-service-dev-12345678/some-path/artifact.zip' ,
@@ -421,6 +427,9 @@ describe('CompileFunctions', () => {
421
427
} ;
422
428
googlePackage . serverless . service . provider . environment = {
423
429
TEST_VAR : 'test' ,
430
+ INT_VAR : 1 ,
431
+ FLOAT_VAR : 3.141 ,
432
+ BOOL_VAR : true ,
424
433
} ;
425
434
426
435
const compiledResources = [
@@ -435,6 +444,9 @@ describe('CompileFunctions', () => {
435
444
availableMemoryMb : 256 ,
436
445
environmentVariables : {
437
446
TEST_VAR : 'test' ,
447
+ INT_VAR : '1' ,
448
+ FLOAT_VAR : '3.141' ,
449
+ BOOL_VAR : 'true' ,
438
450
} ,
439
451
timeout : '60s' ,
440
452
sourceArchiveUrl : 'gs://sls-my-service-dev-12345678/some-path/artifact.zip' ,
@@ -461,13 +473,15 @@ describe('CompileFunctions', () => {
461
473
environment : {
462
474
TEST_VAR : 'test_var' ,
463
475
TEST_VALUE : 'foobar' ,
476
+ TEST_BOOL : true ,
464
477
} ,
465
478
events : [ { http : 'foo' } ] ,
466
479
} ,
467
480
} ;
468
481
googlePackage . serverless . service . provider . environment = {
469
482
TEST_VAR : 'test' ,
470
483
TEST_FOO : 'foo' ,
484
+ TEST_BOOL : false ,
471
485
} ;
472
486
473
487
const compiledResources = [
@@ -484,6 +498,7 @@ describe('CompileFunctions', () => {
484
498
TEST_VAR : 'test_var' ,
485
499
TEST_VALUE : 'foobar' ,
486
500
TEST_FOO : 'foo' ,
501
+ TEST_BOOL : 'true' ,
487
502
} ,
488
503
timeout : '60s' ,
489
504
sourceArchiveUrl : 'gs://sls-my-service-dev-12345678/some-path/artifact.zip' ,
@@ -503,6 +518,7 @@ describe('CompileFunctions', () => {
503
518
expect ( googlePackage . serverless . service . provider . environment ) . toEqual ( {
504
519
TEST_VAR : 'test' ,
505
520
TEST_FOO : 'foo' ,
521
+ TEST_BOOL : false ,
506
522
} ) ;
507
523
} ) ;
508
524
} ) ;
0 commit comments