refactor(auth-token): rename lastUsed to lastUsedAt

This is part of an effort to name all date attributes
consistently.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-01-16 21:52:15 +01:00
parent 64667d81c0
commit b0e2987987
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
5 changed files with 16 additions and 16 deletions

View file

@ -47,7 +47,7 @@ describe('Tokens', () => {
keyId = response.body.keyId;
expect(response.body.label).toBe(tokenName);
expect(response.body.validUntil).toBe(null);
expect(response.body.lastUsed).toBe(null);
expect(response.body.lastUsedAt).toBe(null);
expect(response.body.secret.length).toBe(98);
});
@ -59,7 +59,7 @@ describe('Tokens', () => {
.expect(200);
expect(response.body[0].label).toBe(tokenName);
expect(response.body[0].validUntil).toBe(null);
expect(response.body[0].lastUsed).toBe(null);
expect(response.body[0].lastUsedAt).toBe(null);
expect(response.body[0].secret).not.toBeDefined();
});
it(`DELETE /tokens/:keyid`, async () => {