Skip to content

Commit 6a29c0a

Browse files
authored
Merge pull request #2169 from RedisInsight/fe/bugfix/fix-test
fix tests
2 parents b5f2ecf + 32fcfe2 commit 6a29c0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redisinsight/ui/src/components/monitor/MonitorOutputList/MonitorOutputList.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ describe('MonitorOutputList', () => {
1515
expect(render(<MonitorOutputList {...mockedProps} />)).toBeTruthy()
1616
})
1717

18-
it('should "ReactVirtualized__Grid" be in the DOM', () => {
18+
it('should render items properly', () => {
1919
const item = { time: '112', args: ['ttl'], source: '12', database: '0' }
20-
const mockItems = [item]
20+
const mockItems = [item, item]
2121
const { container } = render(<MonitorOutputList {...mockedProps} items={mockItems} />)
22-
expect(container.getElementsByClassName('ReactVirtualized__Grid').length).toBe(1)
22+
expect(container.getElementsByClassName('item').length).toBe(2)
2323
})
2424
})

0 commit comments

Comments
 (0)