refactor(server): narrow auth types (#16066)

This commit is contained in:
Jason Rasmussen
2025-02-12 15:23:08 -05:00
committed by GitHub
parent 7c821dd205
commit 2d7c333c8c
25 changed files with 265 additions and 239 deletions
+2 -2
View File
@@ -77,9 +77,9 @@ describe(UserService.name, () => {
});
describe('getMe', () => {
it("should get the auth user's info", () => {
it("should get the auth user's info", async () => {
const user = authStub.admin.user;
expect(sut.getMe(authStub.admin)).toMatchObject({
await expect(sut.getMe(authStub.admin)).resolves.toMatchObject({
id: user.id,
email: user.email,
});