Update electron-log to 4.1.1 and fix proxy spec

This commit is contained in:
AkiraFukushima 2020-04-11 18:00:32 +09:00
parent bf80f71d17
commit 870f7b5302
3 changed files with 10 additions and 6 deletions

6
package-lock.json generated
View File

@ -10694,9 +10694,9 @@
}
},
"electron-log": {
"version": "2.2.17",
"resolved": "https://registry.npmjs.org/electron-log/-/electron-log-2.2.17.tgz",
"integrity": "sha512-v+Af5W5z99ehhaLOfE9eTSXUwjzh2wFlQjz51dvkZ6ZIrET6OB/zAZPvsuwT6tm3t5x+M1r+Ed3U3xtPZYAyuQ=="
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/electron-log/-/electron-log-4.1.1.tgz",
"integrity": "sha512-vkK3rNBOciRiinxrsdgg8hyUia+ct8ZMjBblvKjgNk4uHEDjjSyn313NOwv75xOMVIKlfmYzxaN8kR/oGC33aQ=="
},
"electron-mock-ipc": {
"version": "0.3.2",

View File

@ -175,7 +175,7 @@
"deep-extend": "^0.6.0",
"electron-context-menu": "^0.16.0",
"electron-json-storage": "^4.1.8",
"electron-log": "^2.2.17",
"electron-log": "^4.1.1",
"electron-window-state": "^5.0.3",
"element-ui": "2.13.0",
"emoji-mart-vue": "^2.6.6",

View File

@ -5,9 +5,13 @@ import { ManualProxy, ProxyProtocol } from '~/src/types/proxy'
const preferencesDBPath = path.resolve(__dirname, '../../preferences.json')
const proxyConfiguration = new ProxyConfiguration(preferencesDBPath)
// electron.app is using in electron-json-storage
jest.mock('electron', () => ({
app: jest.fn()
app: {
// getVersion is used by electron-log
getVersion: jest.fn(),
// getName is used by electron-json-storage
getName: jest.fn()
}
}))
describe('Parser', () => {