test: more

This commit is contained in:
Ruidy 2025-01-05 16:03:50 +01:00
parent 12a812e675
commit 0fa0d5af91
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -22,20 +22,20 @@ func TestService_All(t *testing.T) {
{ {
Id: 1, Id: 1,
CustomerName: "John Doe", CustomerName: "John Doe",
From: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), From: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC),
To: time.Date(2024, 1, 5, 0, 0, 0, 0, time.UTC), To: time.Date(2024, 1, 5, 0, 0, 0, 0, time.UTC),
Platform: "Airbnb", Platform: "Airbnb",
Total: 500.0, Total: 500.0,
Canceled: false, Canceled: false,
}, },
{ {
Id: 2, Id: 2,
CustomerName: "Jane Smith", CustomerName: "Jane Smith",
From: time.Date(2024, 2, 1, 0, 0, 0, 0, time.UTC), From: time.Date(2024, 2, 1, 0, 0, 0, 0, time.UTC),
To: time.Date(2024, 2, 3, 0, 0, 0, 0, time.UTC), To: time.Date(2024, 2, 3, 0, 0, 0, 0, time.UTC),
Platform: "Booking.com", Platform: "Booking.com",
Total: 300.0, Total: 300.0,
Canceled: true, Canceled: true,
}, },
}, },
}, },
@ -70,20 +70,20 @@ func TestService_Search(t *testing.T) {
{ {
Id: 1, Id: 1,
CustomerName: "John Doe", CustomerName: "John Doe",
From: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), From: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC),
To: time.Date(2024, 1, 5, 0, 0, 0, 0, time.UTC), To: time.Date(2024, 1, 5, 0, 0, 0, 0, time.UTC),
Platform: "Airbnb", Platform: "Airbnb",
Total: 500.0, Total: 500.0,
Canceled: false, Canceled: false,
}, },
{ {
Id: 2, Id: 2,
CustomerName: "Jane Smith", CustomerName: "Jane Smith",
From: time.Date(2024, 2, 1, 0, 0, 0, 0, time.UTC), From: time.Date(2024, 2, 1, 0, 0, 0, 0, time.UTC),
To: time.Date(2024, 2, 3, 0, 0, 0, 0, time.UTC), To: time.Date(2024, 2, 3, 0, 0, 0, 0, time.UTC),
Platform: "Booking.com", Platform: "Booking.com",
Total: 300.0, Total: 300.0,
Canceled: true, Canceled: true,
}, },
} }