Skip to content

Commit

Permalink
Add whitespace rule to tslint (google#150)
Browse files Browse the repository at this point in the history
Signed-off-by: campionfellin <[email protected]>
  • Loading branch information
campionfellin authored and grant committed Apr 27, 2018
1 parent 039b720 commit 738450b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,12 @@ describe.skip('Test clasp version and versions function', () => {
);
expect(result.stdout).to.contain('Created version ');
expect(result.status).to.equal(0);
versionNumber = result.stdout.substring(result.stdout.lastIndexOf(" "), result.stdout.length-2);
versionNumber = result.stdout.substring(result.stdout.lastIndexOf(' '), result.stdout.length - 2);
it('should list versions correctly', () => {
const result = spawnSync(
'clasp', ['versions'], { encoding: 'utf8' },
);
expect(result.stdout).to.contain('~ ');
expect(result.stdout).to.contain(' Versions ~');
expect(result.stdout).to.contain('Versions');
expect(result.stdout).to.contain(versionNumber + ' - ');
expect(result.status).to.equal(0);
});
Expand Down
4 changes: 4 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
"ban-keywords",
"allow-leading-underscore",
"allow-trailing-underscore"
],
"whitespace": [
true,
"check-operator"
]
}
}

0 comments on commit 738450b

Please sign in to comment.