1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

update tests

This commit is contained in:
Matthias Kretschmann 2023-02-02 20:14:43 +00:00
parent 7f0bc94dad
commit ba49dde985
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 1 additions and 4 deletions

View File

@ -6,9 +6,6 @@ describe('Icon', () => {
const { container, rerender } = render(<Icon name={'Compass'} />) const { container, rerender } = render(<Icon name={'Compass'} />)
expect(container.firstChild.nodeName).toBe('svg') expect(container.firstChild.nodeName).toBe('svg')
rerender(<Icon name={'Dribbble'} />)
expect(container.firstChild.nodeName).toBe('svg')
rerender(<Icon name={'Download'} />) rerender(<Icon name={'Download'} />)
expect(container.firstChild.nodeName).toBe('svg') expect(container.firstChild.nodeName).toBe('svg')

View File

@ -27,6 +27,6 @@ describe('ThemeSwitch', () => {
theme = 'system' theme = 'system'
const icon3 = getIconName(theme) const icon3 = getIconName(theme)
expect(icon3).toBe('Monitor') expect(icon3).toBe('Contrast')
}) })
}) })