From f6efda1d61f0f6241a0a80203bb4ebf768b74400 Mon Sep 17 00:00:00 2001 From: Anthony Lai Date: Mon, 14 May 2018 21:40:06 -0700 Subject: [PATCH] Fix lint errors --- index.ts | 4 ++-- tests/test.ts | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 67d7aea2..8ed5a703 100755 --- a/index.ts +++ b/index.ts @@ -452,8 +452,8 @@ commander else if (projectFiles) { const status = { filesToPush: projectFiles[0], - untrackedFiles: projectFiles[1] - } + untrackedFiles: projectFiles[1], + }; if (cmd.json) { console.log(JSON.stringify(status)); } else { diff --git a/tests/test.ts b/tests/test.ts index cb7f955c..40bb2521 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -122,7 +122,7 @@ describe.skip('Test clasp status function', () => { { file: 'build/main.js', data: ' ' }, { file: 'appsscript.json', data: ' ' }, { file: 'shouldBeIgnored', data: ' ' }, - { file: 'should/alsoBeIgnored', data: ' ' } + { file: 'should/alsoBeIgnored', data: ' ' }, ]); spawnSync('clasp', ['create', '[TEST] clasp status'], { encoding: 'utf8', cwd: tmpdir }); const result = spawnSync('clasp', ['status', '--json'], { encoding: 'utf8', cwd: tmpdir }); @@ -142,7 +142,8 @@ describe.skip('Test clasp status function', () => { const result = spawnSync('clasp', ['status', '--json'], { encoding: 'utf8', cwd: tmpdir }); expect(result.status).to.equal(0); const resultJson = JSON.parse(result.stdout); - expect(resultJson.untrackedFiles).to.have.members(['node_modules/fsevents/build/Release/.deps/Release/.node.d']); + expect(resultJson.untrackedFiles).to.have.members([ + 'node_modules/fsevents/build/Release/.deps/Release/.node.d']); expect(resultJson.filesToPush).to.have.members(['appsscript.json']); }); });