fix 'npm lint' errors

This commit is contained in:
Charles Kerr
2018-01-22 15:21:39 -06:00
parent e7074c5cdb
commit d2a9ea4684
2 changed files with 9 additions and 10 deletions

View File

@@ -128,7 +128,7 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) {
return crash_service::Main(cmd);
}
if(!atom::CheckCommandLineArguments(arguments.argc, arguments.argv))
if (!atom::CheckCommandLineArguments(arguments.argc, arguments.argv))
return -1;
sandbox::SandboxInterfaceInfo sandbox_info = {0};

View File

@@ -499,15 +499,14 @@ describe('app module', function () {
})
describe('app launch through uri', () => {
before(function () {
if (process.platform !== 'win32') {
this.skip()
}
})
it('does not launch for blacklisted argument', function(done) {
const appPath = path.join(__dirname,'fixtures', 'api','quit-app')
it('does not launch for blacklisted argument', function (done) {
const appPath = path.join(__dirname, 'fixtures', 'api', 'quit-app')
// App should exit with non 123 code.
const first = ChildProcess.spawn(remote.process.execPath, [appPath, 'electron-test://?', '--no-sandbox', '--gpu-launcher=cmd.exe /c start calc'])
first.once('exit', (code) => {
@@ -516,8 +515,8 @@ describe('app module', function () {
})
})
it('launches successfully for multiple uris in cmd args', function(done) {
const appPath = path.join(__dirname,'fixtures', 'api','quit-app')
it('launches successfully for multiple uris in cmd args', function (done) {
const appPath = path.join(__dirname, 'fixtures', 'api', 'quit-app')
// App should exit with code 123.
const first = ChildProcess.spawn(remote.process.execPath, [appPath, 'http://electronjs.org', 'electron-test://testdata'])
first.once('exit', (code) => {
@@ -526,8 +525,8 @@ describe('app module', function () {
})
})
it('does not launch for encoded space', function(done) {
const appPath = path.join(__dirname,'fixtures', 'api','quit-app')
it('does not launch for encoded space', function (done) {
const appPath = path.join(__dirname, 'fixtures', 'api', 'quit-app')
// App should exit with non 123 code.
const first = ChildProcess.spawn(remote.process.execPath, [appPath, 'electron-test://?', '--no-sandbox', '--gpu-launcher%20"cmd.exe /c start calc'])
first.once('exit', (code) => {
@@ -536,8 +535,8 @@ describe('app module', function () {
})
})
it('launches successfully for argnames similar to blacklisted ones', function(done) {
const appPath = path.join(__dirname,'fixtures', 'api','quit-app')
it('launches successfully for argnames similar to blacklisted ones', function (done) {
const appPath = path.join(__dirname, 'fixtures', 'api', 'quit-app')
// inspect is blacklisted, but inspector should work, and app launch should succeed
const first = ChildProcess.spawn(remote.process.execPath, [appPath, 'electron-test://?', '--inspector'])
first.once('exit', (code) => {