From c50954d5b8c7e53c9ab6e920da876d8f49923c7f Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 14 Jun 2016 01:01:34 +0100 Subject: [PATCH] chore: separate lint in travis --- .travis.yml | 3 ++- public/docs/_examples/toh-1/e2e-spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1c0ac9cf7f..a8084eae11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ env: - DISPLAY=:99.0 - CHROME_BIN=chromium-browser matrix: + - SCRIPT="lint" - SCRIPT="run-e2e-tests --fast" before_install: - npm install -g gulp --no-optional @@ -22,4 +23,4 @@ install: - npm run webdriver:update --prefix public/docs/_examples/_protractor - gulp add-example-boilerplate script: - - gulp lint && gulp $SCRIPT + - gulp $SCRIPT diff --git a/public/docs/_examples/toh-1/e2e-spec.ts b/public/docs/_examples/toh-1/e2e-spec.ts index eb28e941de..35615de9ba 100644 --- a/public/docs/_examples/toh-1/e2e-spec.ts +++ b/public/docs/_examples/toh-1/e2e-spec.ts @@ -15,12 +15,12 @@ describe('Tutorial part 1', () => { }); it(`should have '${expectedH2}'`, () => { - var text = element(by.css('h2')).getText() + let text = element(by.css('h2')).getText(); expect(text).toEqual(expectedH2); }); it(`should have input name '${hero.name}'`, () => { - var name = element(by.css('input')).getAttribute('value'); + let name = element(by.css('input')).getAttribute('value'); expect(name).toEqual(hero.name); }); });