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:
parent
bfb721bfd9
commit
e4268fd22f
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user