mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
test(api): count userTokens before getting user (#51132)
This commit is contained in:
@@ -510,6 +510,9 @@ describe('userRoutes', () => {
|
||||
data: tokenData
|
||||
});
|
||||
|
||||
const tokens = await fastifyTestInstance.prisma.userToken.count();
|
||||
expect(tokens).toBe(1);
|
||||
|
||||
const response = await superRequest('/user/get-session-user', {
|
||||
method: 'GET',
|
||||
setCookies
|
||||
|
||||
Reference in New Issue
Block a user