Skip to content

Commit

Permalink
Add test for CompositeAlarm import arn format
Browse files Browse the repository at this point in the history
  • Loading branch information
nakedible-p authored Apr 6, 2023
1 parent aa7dd0c commit 9d10492
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,13 @@ describe('CompositeAlarm', () => {
});
});

test('imported alarm arn generated correctly', () => {
const stack = new Stack();

const alarm = CompositeAlarm.fromCompositeAlarmName(stack, 'CompositeAlarm', 'TestAlarmName');

expect(alarm.alarmName).toEqual('TestAlarmName');
expect(alarm.alarmArn).toMatch(/:alarm:TestAlarmName$/);
});

});

0 comments on commit 9d10492

Please sign in to comment.