Skip to content

Commit

Permalink
fix it with export REGION
Browse files Browse the repository at this point in the history
  • Loading branch information
rsonghuster committed Aug 15, 2024
1 parent 97030f4 commit 9e41225
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions __tests__/it/integration_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ describe('Integration Tests', () => {

test('deploy event function', async () => {
const output = await myFcInstance.deploy(inputs);
const region = process.env.REGION || 'cn-huhehaote';
expect(output).toEqual({
region: process.env.REGION || 'cn-huhehaote',
region,
description: 'hello world by serverless devs',
functionArn: 'acs:fc:cn-huhehaote:1431999136518149:functions/start-py',
functionArn: `acs:fc:${region}:1431999136518149:functions/start-py`,
functionName: 'start-py',
handler: 'index.handler',
internetAccess: true,
Expand Down Expand Up @@ -105,10 +106,11 @@ describe('Integration Tests', () => {
const output = await myFcInstance.deploy(inputs_http);
removeNullValues(output);
delete output['url'];
const region = process.env.REGION || 'cn-huhehaote';
expect(output).toEqual({
region: process.env.REGION || 'cn-huhehaote',
region,
description: 'hello world by serverless devs',
functionArn: 'acs:fc:cn-huhehaote:1431999136518149:functions/start-py',
functionArn: `acs:fc:${region}:1431999136518149:functions/start-py`,
functionName: 'start-py',
handler: 'index.handler',
internetAccess: true,
Expand Down

0 comments on commit 9e41225

Please sign in to comment.