feat(tests): new scanner test

This commit is contained in:
Alexey Kasyanchuk
2018-02-03 22:48:41 +03:00
parent 6646381a49
commit b205245e40
6 changed files with 38 additions and 74 deletions

View File

@ -43,7 +43,7 @@ const fs = require('fs');
const debug = require('debug')('config')
let configPath = 'config.json'
if(app.getPath("userData") && app.getPath("userData").length > 0)
if(app && app.getPath("userData") && app.getPath("userData").length > 0)
{
configPath = app.getPath("userData") + '/config.json'
}