Browse Source

fix 'npm lint' errors

Charles Kerr 7 years ago
parent
commit
d2a9ea4684
2 changed files with 9 additions and 10 deletions
  1. 1 1
      atom/app/atom_main.cc
  2. 8 9
      spec/api-app-spec.js

+ 1 - 1
atom/app/atom_main.cc

@@ -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};

+ 8 - 9
spec/api-app-spec.js

@@ -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) => {