Support of teacher absence format: "za Vn zastupuje Jk"
This commit is contained in:
@@ -228,6 +228,18 @@ test("Me-exk", [
|
||||
}
|
||||
])
|
||||
|
||||
test("za Vn zastupuje Jk", [
|
||||
{
|
||||
teacher: "Ing. Zdeněk Vondra",
|
||||
teacherCode: "vn",
|
||||
type: "zastoupen",
|
||||
zastupuje: {
|
||||
teacher: "David Janoušek",
|
||||
teacherCode: "jk"
|
||||
},
|
||||
}
|
||||
])
|
||||
|
||||
function test(input, expectedOutput) {
|
||||
const res = parseAbsence(input, teachermap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user