forked from tsai/budibase
committed by
GitHub
2 changed files with 16 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||||
|
import * as sessions from "../sessions" |
||||
|
|
||||
|
describe("sessions", () => { |
||||
|
describe("getSessionsForUser", () => { |
||||
|
it("returns empty when user is undefined", async () => { |
||||
|
// @ts-ignore - allow the undefined to be passed
|
||||
|
const results = await sessions.getSessionsForUser(undefined) |
||||
|
|
||||
|
expect(results).toStrictEqual([]) |
||||
|
}) |
||||
|
}) |
||||
|
}) |
||||
Loading…
Reference in new issue