Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions packages/solid-query-devtools/src/__tests__/devtoolsPanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,11 @@ describe('SolidQueryDevtoolsPanel', () => {
style={{ width: '300px' }}
/>
))
const panel = container.querySelector(
'.tsqd-parent-container',
) as HTMLElement

expect(panel.style.height).toBe('500px')
expect(panel.style.width).toBe('300px')
expect(container.querySelector('.tsqd-parent-container')).toHaveStyle({
height: '500px',
width: '300px',
})
})

it('should let "style" override the default container height on the rendered element', () => {
Expand All @@ -147,12 +146,11 @@ describe('SolidQueryDevtoolsPanel', () => {
style={{ width: '300px', height: '300px' }}
/>
))
const panel = container.querySelector(
'.tsqd-parent-container',
) as HTMLElement

expect(panel.style.height).toBe('300px')
expect(panel.style.width).toBe('300px')
expect(container.querySelector('.tsqd-parent-container')).toHaveStyle({
height: '300px',
width: '300px',
})
})

it('should call "unmount" on the devtools instance when the component unmounts', () => {
Expand Down
Loading