mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-11-22 01:36:58 +01:00
test tweaks
This commit is contained in:
parent
77d02fe45e
commit
c3edae6280
23
tests/__mocks__/electron.js
Normal file
23
tests/__mocks__/electron.js
Normal file
@ -0,0 +1,23 @@
|
||||
const electron = {
|
||||
require: jest.fn(),
|
||||
match: jest.fn(),
|
||||
app: jest.fn(),
|
||||
remote: jest.fn(),
|
||||
shell: jest.fn(),
|
||||
dialog: jest.fn()
|
||||
}
|
||||
|
||||
const remote = {
|
||||
getCurrentWindow: jest.fn()
|
||||
}
|
||||
|
||||
// for the shell module above
|
||||
const shell = {
|
||||
openExternal: jest.fn()
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
electron,
|
||||
remote,
|
||||
shell
|
||||
}
|
@ -13,6 +13,7 @@ describe('Home', () => {
|
||||
)
|
||||
expect(container.firstChild).toBeInTheDocument()
|
||||
fireEvent.click(getByText(/Ξ/))
|
||||
// fireEvent.click(getByText(/0x/))
|
||||
})
|
||||
|
||||
it('renders Welcome without config', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user