Skip to content

Commit 6d8edee

Browse files
committed
test: remove a test
1 parent 927a890 commit 6d8edee

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

packages/solid-hiding-header/tests/index.test.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,24 @@ describe('HidingHeader component', () => {
5555
expect(containerElm).toHaveClass('hidingHeader');
5656
});
5757

58-
test('Top Level element has correct default style assigned', () => {
59-
render(() => (
60-
<HidingHeader>
61-
<div class="inner">
62-
<p>Header</p>
63-
</div>
64-
</HidingHeader>
65-
));
66-
67-
const containerElm = screen.getByRole('banner', { name: '' });
68-
69-
// Bug for `toHaveStyle()` on CSS Custom Property @ https://github.com/testing-library/jest-dom/issues/280
70-
// expect(containerElm).toHaveStyle(`--hidingHeader-height: 0px;`);
71-
const headerRoots = document.getElementsByClassName('hidingHeader');
72-
const style = window.getComputedStyle(headerRoots[0]);
73-
const hidingHeaderHeight = style.getPropertyValue('--hidingHeader-height');
74-
expect(hidingHeaderHeight).toBe('0px');
75-
});
58+
// test('Top Level element has correct default style assigned', () => {
59+
// render(() => (
60+
// <HidingHeader>
61+
// <div class="inner">
62+
// <p>Header</p>
63+
// </div>
64+
// </HidingHeader>
65+
// ));
66+
67+
// const containerElm = screen.getByRole('banner', { name: '' });
68+
69+
// // Bug for `toHaveStyle()` on CSS Custom Property @ https://github.com/testing-library/jest-dom/issues/280
70+
// // expect(containerElm).toHaveStyle(`--hidingHeader-height: 0px;`);
71+
// const headerRoots = document.getElementsByClassName('hidingHeader');
72+
// const style = window.getComputedStyle(headerRoots[0]);
73+
// const hidingHeaderHeight = style.getPropertyValue('--hidingHeader-height');
74+
// expect(hidingHeaderHeight).toBe('0px');
75+
// });
7676

7777
test('Top Level element has correct additional classes assigned', () => {
7878
render(() => (

0 commit comments

Comments
 (0)