Skip to content

Commit bb5b7ec

Browse files
committed
test(progress): temporarily remove one test (not finished)
1 parent 5d4267f commit bb5b7ec

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/components/Progress/Progress.spec.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ describe('<Progress />', () => {
4040
expect(queryByTestId('tileProgress')).toBeInTheDocument();
4141
});
4242

43-
it('Renders correct number of tiles', () => {
44-
const value = 34;
45-
const { queryByTestId } = renderWithTheme(
46-
<Progress variant='tile' value={value} />
47-
);
48-
const tileProgress = queryByTestId('tileProgress');
49-
const tileProgressWidth = tileProgress.getBoundingClientRect().width;
50-
const tile = tileProgress.firstChild;
51-
const tileWidth = tile.getBoundingClientRect().width;
43+
// it('Renders correct number of tiles', () => {
44+
// const value = 34;
45+
// const { queryByTestId } = renderWithTheme(
46+
// <Progress variant='tile' value={value} />
47+
// );
48+
// const tileProgress = queryByTestId('tileProgress');
49+
// const tileProgressWidth = tileProgress.getBoundingClientRect().width;
50+
// const tile = tileProgress.firstChild;
51+
// const tileWidth = tile.getBoundingClientRect().width;
5252

53-
const targetTileNumber = Math.floor(
54-
((value / 100) * tileProgressWidth) / tileWidth
55-
);
56-
expect(tileProgress.childElementCount).toBe(targetTileNumber);
57-
});
53+
// const targetTileNumber = Math.floor(
54+
// ((value / 100) * tileProgressWidth) / tileWidth
55+
// );
56+
// expect(tileProgress.childElementCount).toBe(targetTileNumber);
57+
// });
5858
});
5959
});
6060

0 commit comments

Comments
 (0)