2019-09-24 01:13:02 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { render } from '@testing-library/react'
|
2020-02-09 17:16:10 +01:00
|
|
|
import { AppContext } from '../../src/renderer/store/createContext'
|
|
|
|
import Preferences from '../../src/renderer/pages/preferences'
|
2019-09-24 01:13:02 +02:00
|
|
|
|
|
|
|
describe('Preferences', () => {
|
|
|
|
it('renders correctly', () => {
|
|
|
|
const { container } = render(
|
|
|
|
<AppContext.Provider value={{ accentColor: '#0a5fff' }}>
|
|
|
|
<Preferences />
|
|
|
|
</AppContext.Provider>
|
|
|
|
)
|
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
|
|
})
|
|
|
|
})
|