Added linters and fixed linter warnings

This commit is contained in:
2018-04-28 23:19:02 -05:00
parent afcf9adc25
commit 8bc16155f3
5 changed files with 305 additions and 272 deletions

View File

@ -1,11 +1,13 @@
const ShiftStats = require('./index')
'use strict';
let s = new ShiftStats()
const ShiftStats = require('./index');
let s = new ShiftStats();
// with promises
s.login().then(() => {
return s.divisionStandings(4702)
}).then(async (standings) => {
console.log(standings.teams)
return s.divisionStandings(4702);
}).then(async(standings) => {
console.log(standings.teams);
// with async/await
console.log((await s.gameGoals(166658, 'home')).home_goals)
})
console.log((await s.gameGoals(166658, 'home')).home_goals);
});