website/src/actions/__snapshots__/timetables.test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`cancelModifyLesson should not have payload 1`] = `
{
"payload": null,
"type": "CANCEL_MODIFY_LESSON",
}
`;
exports[`changeLesson should return updated information to change lesson 1`] = `
{
"payload": {
"classNo": "1",
"lessonType": "Recitation",
"moduleCode": "CS1010S",
"semester": 1,
},
"type": "CHANGE_LESSON",
}
`;
exports[`fetchTimetableModules should fetch modules 1`] = `
[
[
[Function],
],
]
`;
exports[`hide/show timetable modules should dispatch a module code for hiding 1`] = `
{
"payload": {
"moduleCode": "CS1010",
"semester": 1,
},
"type": "HIDE_LESSON_IN_TIMETABLE",
}
`;
exports[`hide/show timetable modules should dispatch a module code for showing 1`] = `
{
"payload": {
"moduleCode": "CS1020",
"semester": 1,
},
"type": "SHOW_LESSON_IN_TIMETABLE",
}
`;
exports[`modifyLesson should return lesson payload 1`] = `
{
"payload": {
"activeLesson": {
"classNo": "1",
"colorIndex": 0,
"day": "Wednesday",
"endTime": "1200",
"lessonType": "Lecture",
"moduleCode": "CS1010S",
"startTime": "1000",
"title": "Programming Methodology",
"venue": "LT26",
"weeks": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
],
},
},
"type": "MODIFY_LESSON",
}
`;
exports[`removeLesson should return information to remove module 1`] = `
{
"payload": {
"moduleCode": "CS1010",
"semester": 1,
},
"type": "REMOVE_MODULE",
}
`;
exports[`select module color should dispatch a select of module color 1`] = `
{
"payload": {
"colorIndex": 0,
"moduleCode": "CS1010S",
"semester": 1,
},
"type": "SELECT_MODULE_COLOR",
}
`;
exports[`select module color should dispatch a select of module color 2`] = `
{
"payload": {
"colorIndex": 1,
"moduleCode": "CS3216",
"semester": 1,
},
"type": "SELECT_MODULE_COLOR",
}
`;