wrote a test to ensure the service works and deserializes 11 employees

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
Matt Bruce 2025-01-20 17:33:02 -06:00
parent bfb721bfd9
commit e4268fd22f

View File

@ -10,8 +10,13 @@ import Testing
struct EmployeeDirectoryTests { struct EmployeeDirectoryTests {
@Test func example() async throws { @Test func getEmployeesValid() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions. let employees = try await EmployeeService().getEmployees()
#expect(employees.count == 11)
}
@Test func getEmployeesInValid() async throws {
let employees = try await EmployeeService().getEmployees()
#expect(employees.count == 11)
} }
} }