| | |
| | | |
| | | |
| | | test("makeEffortTable:", t=>{ |
| | | let testData = [ |
| | | const testData = [ |
| | | {name:"A", code:"DFBI-311", sws:4, ects: 4, homework:1}, |
| | | {name:"B", code:"DFBI-312", sws:3, ects: 4, homework:2} |
| | | ]; |
| | | let html = makeEffortTable(testData); |
| | | let expected = `<table> |
| | | const html = makeEffortTable(testData); |
| | | const expected = `<table> |
| | | <tr><th class="name">Vorlesung</th><th class="effort">Aufwand pro Woche in Stunden</th></tr> |
| | | <tr><td class="name">A</td> <td class="effort">1</td></tr> |
| | | <tr><td class="name">B</td> <td class="effort">2</td></tr> |