Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Niranjan Jayakar committed Aug 24, 2021
1 parent 6e3448a commit d986264
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('ApiMapping', () => {
ApiId: {
Ref: 'ApiF70053CD',
},
DomainName: 'example.com',
Stage: '$default',
});
});
Expand Down Expand Up @@ -58,7 +57,6 @@ describe('ApiMapping', () => {
ApiId: {
Ref: 'ApiF70053CD',
},
DomainName: 'example.com',
Stage: 'beta',
ApiMappingKey: 'beta',
});
Expand Down
6 changes: 5 additions & 1 deletion packages/@aws-cdk/aws-apigatewayv2/test/http/stage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ describe('HttpStage with domain mapping', () => {
},
});

expect(stage.domainUrl).toBe(`https://${domainName}/`);
expect(stack.resolve(stage.domainUrl)).toEqual({
'Fn::Join': ['', [
'https://', { Ref: 'DNFDC76583' }, '/',
]],
});
});

test('domainUrl throws error if domainMapping is not configured', () => {
Expand Down

0 comments on commit d986264

Please sign in to comment.