Skip to content

five-on-it / apps/api/src/testing / befriend

Function: befriend() ​

befriend(app, a, b): Promise<void>

Defined in: apps/api/src/testing.ts:264

Makes two accounts friends (each asks the other).

Parameters ​

app ​

FastifyInstance

a ​

account ​

{ name: string; }

account.name ​

string

headers ​

Record<string, string>

b ​

account ​

{ name: string; }

account.name ​

string

headers ​

Record<string, string>

Returns ​

Promise<void>