@@ -32,38 +32,25 @@ const props = {
32
32
stop : jest . fn ( ) ,
33
33
remove : jest . fn ( ) ,
34
34
runStopped : jest . fn ( ) ,
35
- status : ' running'
35
+ status : " running" ,
36
36
} ;
37
37
38
38
describe ( "Containers" , ( ) => {
39
39
test ( "Containers component should render" , ( ) => {
40
- render (
41
- < Provider store = { store } >
42
- < Containers />
43
- </ Provider >
44
- ) ;
45
- } ) ;
46
-
47
- describe ( 'ContainersCard' , ( ) => {
48
- test ( 'ContainersCard component should render' , ( ) => {
49
- render (
50
- < ContainersCard
51
- containerList = { props . runningList }
52
- stopContainer = { props . stop }
53
- runContainer = { props . runStopped }
54
- removeContainer = { props . remove }
55
- status = { props . status }
56
- />
57
- ) ;
58
- } ) ;
40
+ render (
41
+ < Provider store = { store } >
42
+ < Containers />
43
+ </ Provider >
44
+ ) ;
59
45
} ) ;
60
46
61
47
describe ( "Running List containers" , ( ) => {
62
48
beforeEach ( ( ) => {
63
- render ( < Provider store = { store } >
64
- < Containers { ...props } />
65
- </ Provider >
66
- )
49
+ render (
50
+ < Provider store = { store } >
51
+ < Containers { ...props } />
52
+ </ Provider >
53
+ ) ;
67
54
render (
68
55
< ContainersCard
69
56
containerList = { props . runningList }
@@ -113,3 +100,17 @@ describe("Containers", () => {
113
100
} ) ;
114
101
} ) ;
115
102
} ) ;
103
+
104
+ describe ( "ContainersCard" , ( ) => {
105
+ test ( "ContainersCard component should render" , ( ) => {
106
+ render (
107
+ < ContainersCard
108
+ containerList = { props . runningList }
109
+ stopContainer = { props . stop }
110
+ runContainer = { props . runStopped }
111
+ removeContainer = { props . remove }
112
+ status = { props . status }
113
+ />
114
+ ) ;
115
+ } ) ;
116
+ } ) ;
0 commit comments