Add trailing newline and run 'npm run format'

This commit is contained in:
Peter deHaan 2017-07-31 08:32:55 -07:00
parent 78b7bea284
commit 40d6d1d4e6
No known key found for this signature in database
GPG key ID: F0FC6C01C6305097
2 changed files with 21 additions and 17 deletions

View file

@ -2,9 +2,7 @@ const webdriver = require('selenium-webdriver');
const path = require('path');
const until = webdriver.until;
const driver = new webdriver.Builder()
.forBrowser('firefox')
.build();
const driver = new webdriver.Builder().forBrowser('firefox').build();
driver.get(path.join('file:///', __dirname, '/frontend.test.html'));
driver.wait(until.titleIs('Mocha Tests'));
@ -15,8 +13,10 @@ driver.getTitle().then(title => {
if (title === '0') {
console.log('Frontend tests have passed.');
} else {
throw new Error('Frontend tests are failing. ' +
'Please open the frontend.test.html file in a browser.');
throw new Error(
'Frontend tests are failing. ' +
'Please open the frontend.test.html file in a browser.'
);
}
})
})
});
});