mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-10-31 23:55:17 +01:00
16 lines
489 B
JavaScript
16 lines
489 B
JavaScript
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
import { AppContext } from '../../src/renderer/store/createContext'
|
|
import Preferences from '../../src/renderer/pages/preferences'
|
|
|
|
describe('Preferences', () => {
|
|
it('renders correctly', () => {
|
|
const { container } = render(
|
|
<AppContext.Provider value={{ accentColor: '#0a5fff' }}>
|
|
<Preferences />
|
|
</AppContext.Provider>
|
|
)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|