@@ -98,12 +98,12 @@ describe('ec2ParentNode', function () {
98
98
it ( 'sorts child nodes' , async function ( ) {
99
99
const sortedText = [ 'aa' , 'ab' , 'bb' , 'bc' , 'cc' , 'cd' ]
100
100
const instances = [
101
- { name : 'ab' , InstanceId : '0' } ,
102
- { name : 'bb' , InstanceId : '1' } ,
103
- { name : 'bc' , InstanceId : '2' } ,
104
- { name : 'aa' , InstanceId : '3' } ,
105
- { name : 'cc' , InstanceId : '4' } ,
106
- { name : 'cd' , InstanceId : '5' } ,
101
+ { name : 'ab' , InstanceId : '0' , status : 'running' } ,
102
+ { name : 'bb' , InstanceId : '1' , status : 'running' } ,
103
+ { name : 'bc' , InstanceId : '2' , status : 'running' } ,
104
+ { name : 'aa' , InstanceId : '3' , status : 'running' } ,
105
+ { name : 'cc' , InstanceId : '4' , status : 'running' } ,
106
+ { name : 'cd' , InstanceId : '5' , status : 'running' } ,
107
107
]
108
108
109
109
getInstanceStub . resolves ( mapToInstanceCollection ( instances ) )
@@ -124,9 +124,9 @@ describe('ec2ParentNode', function () {
124
124
125
125
it ( 'is able to handle children with duplicate names' , async function ( ) {
126
126
const instances = [
127
- { name : 'firstOne' , InstanceId : '0' } ,
128
- { name : 'secondOne' , InstanceId : '1' } ,
129
- { name : 'firstOne' , InstanceId : '2' } ,
127
+ { name : 'firstOne' , InstanceId : '0' , status : 'running' } ,
128
+ { name : 'secondOne' , InstanceId : '1' , status : 'running' } ,
129
+ { name : 'firstOne' , InstanceId : '2' , status : 'running' } ,
130
130
]
131
131
132
132
getInstanceStub . resolves ( mapToInstanceCollection ( instances ) )
0 commit comments