Skip to content

Commit 0149439

Browse files
committed
types fixed in images and app
1 parent 92f3ed8 commit 0149439

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

__tests__/ContainersTab.test.js

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,38 +32,25 @@ const props = {
3232
stop: jest.fn(),
3333
remove: jest.fn(),
3434
runStopped: jest.fn(),
35-
status: 'running'
35+
status: "running",
3636
};
3737

3838
describe("Containers", () => {
3939
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+
);
5945
});
6046

6147
describe("Running List containers", () => {
6248
beforeEach(() => {
63-
render(<Provider store={store}>
64-
<Containers {...props} />
65-
</Provider>
66-
)
49+
render(
50+
<Provider store={store}>
51+
<Containers {...props} />
52+
</Provider>
53+
);
6754
render(
6855
<ContainersCard
6956
containerList={props.runningList}
@@ -113,3 +100,17 @@ describe("Containers", () => {
113100
});
114101
});
115102
});
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

Comments
 (0)