1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-11-22 17:50:11 +01:00

test tweaks

This commit is contained in:
Matthias Kretschmann 2020-02-09 22:16:23 +01:00
parent 77d02fe45e
commit c3edae6280
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 24 additions and 0 deletions

View 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
}

View File

@ -13,6 +13,7 @@ describe('Home', () => {
) )
expect(container.firstChild).toBeInTheDocument() expect(container.firstChild).toBeInTheDocument()
fireEvent.click(getByText(/Ξ/)) fireEvent.click(getByText(/Ξ/))
// fireEvent.click(getByText(/0x/))
}) })
it('renders Welcome without config', () => { it('renders Welcome without config', () => {