1
0
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:
Yu-Hung Ou
2018-03-15 22:14:21 +11:00
parent 8bf5d02624
commit c147e0a789
3 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
import mock from 'mock-require'
const noop = () => {}
mock('electron', {
remote: {
app: {
getAppPath: noop
}
}
})