updated the tests, uncertain about their effectiveness ATM

This commit is contained in:
Evan Powell 2020-11-08 21:09:44 -06:00
parent fd00b2203e
commit f20378f6c8
2 changed files with 18 additions and 2 deletions

View File

@ -21,7 +21,11 @@ describe('the lineup model', function() {
week_num: '6',
})
expect(await lineup.to_api()).to.be.eql({
//?
//not absolutely sure about this one
team_id: undefined,
active: undefined,
//not surea bout above, either
week_num: 5,
})
})
})

View File

@ -18,9 +18,21 @@ describe('the matchup model', function() {
home_team_score: 20,
visitor_team_score: 21,
})
//I added one for every async function, hopefully that is the right call
expect(await Matchup.to_api()).to.be.eql({
home_team: 'home team',
visitor_team: 'visiting team',
})
//uncertain for what to even put in these below
expect(await Matchup.home_team()).to.be.eql({
home_team_id: 'test home team',
})
expect(await Matchup.visitor_team()).to.be.eql({
visitor_team_id: 'test vistor team',
})
})
})