chore: separate lint in travis

This commit is contained in:
Filipe Silva 2016-06-14 01:01:34 +01:00
parent 4dab16448b
commit c50954d5b8
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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);
});
});