@@ -36,7 +36,7 @@ describe("Dockeeter reducer", () => {
36
36
payload : [ { cid : "789" } ] ,
37
37
} ;
38
38
expect ( containerListReducer ( state , action ) . runningList . length ) . toEqual ( 1 ) ;
39
- expect ( containerListReducer ( state , action ) . runningList [ 0 ] . cid ) . toEqual ( "789" ) ;
39
+ expect ( containerListReducer ( state , action ) . runningList [ 0 ] . ID ) . toEqual ( "789" ) ;
40
40
} ) ;
41
41
} ) ;
42
42
@@ -53,7 +53,7 @@ describe("Dockeeter reducer", () => {
53
53
payload : [ { cid : "789" } ] ,
54
54
} ;
55
55
expect ( containerListReducer ( state , action ) . stoppedList . length ) . toEqual ( 1 ) ;
56
- expect ( containerListReducer ( state , action ) . stoppedList [ 0 ] . cid ) . toEqual ( "789" ) ;
56
+ expect ( containerListReducer ( state , action ) . stoppedList [ 0 ] . ID ) . toEqual ( "789" ) ;
57
57
} ) ;
58
58
} ) ;
59
59
@@ -77,7 +77,7 @@ describe("Dockeeter reducer", () => {
77
77
stoppedList : [ { cid : "123" } , { cid : "456" } ] ,
78
78
} ;
79
79
const action = { type : "REMOVE_CONTAINER" , payload : "123" } ;
80
- expect ( containerListReducer ( newState , action ) . stoppedList [ 0 ] . cid ) . toEqual ( "456" ) ;
80
+ expect ( containerListReducer ( newState , action ) . stoppedList [ 0 ] . ID ) . toEqual ( "456" ) ;
81
81
} ) ;
82
82
} ) ;
83
83
@@ -89,7 +89,7 @@ describe("Dockeeter reducer", () => {
89
89
} ;
90
90
const action = { type : "STOP_RUNNING_CONTAINER" , payload : "123" } ;
91
91
newState = containerListReducer ( newState , action ) ;
92
- expect ( newState . runningList [ 0 ] . cid ) . toEqual ( "456" ) ;
92
+ expect ( newState . runningList [ 0 ] . ID ) . toEqual ( "456" ) ;
93
93
} ) ;
94
94
} ) ;
95
95
@@ -100,7 +100,7 @@ describe("Dockeeter reducer", () => {
100
100
stoppedList : [ { cid : "123" } , { cid : "456" } ] ,
101
101
} ;
102
102
const action = { type : "RUN_STOPPED_CONTAINER" , payload : "123" } ;
103
- expect ( containerListReducer ( newState , action ) . stoppedList [ 0 ] . cid ) . toEqual ( "456" ) ;
103
+ expect ( containerListReducer ( newState , action ) . stoppedList [ 0 ] . ID ) . toEqual ( "456" ) ;
104
104
} ) ;
105
105
} ) ;
106
106
0 commit comments