( client: PoolClient, username: string | null, password: string | null )
| 4 | import { reallyCreateUser } from "./really_create_user.test"; |
| 5 | |
| 6 | export async function login( |
| 7 | client: PoolClient, |
| 8 | username: string | null, |
| 9 | password: string | null |
| 10 | ) { |
| 11 | const { |
| 12 | rows: [row], |
| 13 | } = await client.query(`select * from app_private.login($1, $2)`, [ |
| 14 | username, |
| 15 | password, |
| 16 | ]); |
| 17 | return row; |
| 18 | } |
| 19 | |
| 20 | const USERNAME = "username"; |
| 21 | const EMAIL = `${USERNAME}@example.com`; |
no outgoing calls
no test coverage detected