Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Corrected CourseCardRedux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gannonprudhomme committed May 4, 2020
1 parent 46a8d3d commit ed95011
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,11 @@ describe('Course Cards Redux', () => {
maxEnrollment: 1,
instructor: new Instructor({ name: 'Instructor Name' }),
grades: null as any,
web: false,
honors: false,
});

const expected = [
const meetings = [
new Meeting({
id: 11,
building: '',
Expand All @@ -262,8 +264,10 @@ describe('Course Cards Redux', () => {
}),
];

const expected = [{ section, meetings, selected: false }];

// act
const output = parseMeetings(input);
const output = parseSections(input);

// assert
expect(output).toEqual(expected);
Expand Down

0 comments on commit ed95011

Please sign in to comment.