updated the tests, uncertain about their effectiveness ATM
This commit is contained in:
parent
fd00b2203e
commit
f20378f6c8
@ -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,
|
||||
})
|
||||
})
|
||||
})
|
@ -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',
|
||||
})
|
||||
|
||||
|
||||
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user