Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Lai committed May 15, 2018
1 parent 60c304d commit f6efda1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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']);
});
});
Expand Down

0 comments on commit f6efda1

Please sign in to comment.