Change frontend deps
This commit is contained in:
17
frontend/src/tests/api.test.ts
Normal file
17
frontend/src/tests/api.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { DummyApiaryAPIClient, TotalStats } from "../js/api";
|
||||
|
||||
describe("DummyApiaryAPIClient", () => {
|
||||
const api = new DummyApiaryAPIClient()
|
||||
test("totals returns expeced value", async () => {
|
||||
let totals = await api.totals()
|
||||
const expected: TotalStats = {
|
||||
password: 1,
|
||||
username: 1,
|
||||
ip: 1,
|
||||
attempts: 1,
|
||||
country: 1,
|
||||
}
|
||||
|
||||
expect(totals).toEqual(expected)
|
||||
})
|
||||
});
|
Reference in New Issue
Block a user