From 738450b290e003ba4f43a70b794712b76930c4fc Mon Sep 17 00:00:00 2001 From: Campion Fellin Date: Thu, 26 Apr 2018 23:10:13 -0700 Subject: [PATCH] Add whitespace rule to tslint (#150) Signed-off-by: campionfellin --- tests/test.ts | 5 ++--- tslint.json | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test.ts b/tests/test.ts index f7ef32da..241627e1 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -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); }); diff --git a/tslint.json b/tslint.json index d89241b3..d568b545 100644 --- a/tslint.json +++ b/tslint.json @@ -109,6 +109,10 @@ "ban-keywords", "allow-leading-underscore", "allow-trailing-underscore" + ], + "whitespace": [ + true, + "check-operator" ] } }