serverless-architectures-aws icon indicating copy to clipboard operation
serverless-architectures-aws copied to clipboard

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

Open Cuneytt opened this issue 7 years ago • 1 comments

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"
});

Cuneytt avatar May 05 '17 18:05 Cuneytt

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

sbarski avatar May 28 '17 04:05 sbarski