mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
mocked electron in ava unit tests
This commit is contained in:
11
tests/helpers/setup-electron-mock.js
Normal file
11
tests/helpers/setup-electron-mock.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import mock from 'mock-require'
|
||||
|
||||
const noop = () => {}
|
||||
|
||||
mock('electron', {
|
||||
remote: {
|
||||
app: {
|
||||
getAppPath: noop
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user