sbarski / serverless-architectures-aws

The code repository for the Serverless Architectures on AWS book
http://book.acloud.guru
MIT License
154 stars 100 forks source link

chapter-6/Listing 6.8 - Tests/test/test.js missing env variables #3

Open Cuneytt opened 7 years ago

Cuneytt commented 7 years ago

Added two env variables to rewired.__set__

rewired.__set__({
      's3': {listObjects: listObjects},
      'process.env.BASE_URL': "https://s3.amazonaws.com",
      'process.env.BUCKET': "serverless-video-transcoded"
});
sbarski commented 7 years ago

Thank you @Cuneytt! Will add this to the next revision and to chapter6/test/test.js.