Skip to content

Commit 9f8f5a3

Browse files
committed
add test case for stop icon
1 parent 785fd31 commit 9f8f5a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/src/test/awsService/ec2/utils.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ describe('utils', async function () {
2828
InstanceId: 'XX',
2929
LastSeenStatus: 'stopped',
3030
}
31+
const terminatedInstance: SafeEc2Instance = {
32+
InstanceId: 'XXX',
33+
LastSeenStatus: 'terminated',
34+
}
3135

3236
assert.strictEqual(getIconCode(runningInstance), 'pass')
3337
assert.strictEqual(getIconCode(stoppedInstance), 'circle-slash')
38+
assert.strictEqual(getIconCode(terminatedInstance), 'stop')
3439
})
3540

3641
it('defaults to loading~spin', function () {

0 commit comments

Comments
 (0)