refactor(server): api key auth (#3054)

This commit is contained in:
Jason Rasmussen
2023-06-30 21:49:30 -04:00
committed by GitHub
parent f9671dfbf7
commit 399312ead3
7 changed files with 53 additions and 66 deletions

View File

@@ -56,6 +56,7 @@ describe(APIKeyService.name, () => {
it('should update a key', async () => {
keyMock.getById.mockResolvedValue(keyStub.admin);
keyMock.update.mockResolvedValue(keyStub.admin);
await sut.update(authStub.admin, 'random-guid', { name: 'New Name' });