mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 09:38:51 +02:00
test:#53 fixed feedFunctions
This commit is contained in:
@ -113,31 +113,31 @@ func TestCombineEventsInFeed(t *testing.T) {
|
||||
args: args{
|
||||
events: model.Events{
|
||||
{
|
||||
Name: "Test",
|
||||
Name: "Modellierung",
|
||||
Start: mockTime.ParseAsTypesDatetime(time.Date(2023, 12, 1, 0, 0, 0, 0, time.UTC)),
|
||||
End: mockTime.ParseAsTypesDatetime(time.Date(2023, 12, 1, 4, 0, 0, 0, time.UTC)),
|
||||
Prof: "Test",
|
||||
Rooms: "Test",
|
||||
Notes: "Test",
|
||||
Prof: "Prof. Bunt",
|
||||
Rooms: "LI001",
|
||||
Notes: "Gruppe 2",
|
||||
},
|
||||
{
|
||||
Name: "Test",
|
||||
Name: "Modellierung",
|
||||
Start: mockTime.ParseAsTypesDatetime(time.Date(2023, 12, 1, 0, 0, 0, 0, time.UTC)),
|
||||
End: mockTime.ParseAsTypesDatetime(time.Date(2023, 12, 1, 4, 0, 0, 0, time.UTC)),
|
||||
Prof: "Test",
|
||||
Rooms: "Test",
|
||||
Notes: "Test",
|
||||
Prof: "Prof. Bunt",
|
||||
Rooms: "LI002",
|
||||
Notes: "Gruppe 1",
|
||||
},
|
||||
},
|
||||
},
|
||||
want: model.Events{
|
||||
{
|
||||
Name: "Test",
|
||||
Name: "Modellierung",
|
||||
Start: mockTime.ParseAsTypesDatetime(time.Date(2023, 12, 1, 0, 0, 0, 0, time.UTC)),
|
||||
End: mockTime.ParseAsTypesDatetime(time.Date(2023, 12, 1, 4, 0, 0, 0, time.UTC)),
|
||||
Prof: "Test",
|
||||
Rooms: "Test",
|
||||
Notes: "Test: Test\nTest: Test",
|
||||
Prof: "Prof. Bunt",
|
||||
Rooms: "LI001, LI002",
|
||||
Notes: "LI001 - Gruppe 2 (Prof. Bunt)\nLI002 - Gruppe 1 (Prof. Bunt)",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user