refactor(history-entry): rename lastVisited

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 22:04:34 +01:00
parent f1feb3bf94
commit 6cd3feb82c
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 9 additions and 9 deletions

View file

@ -79,8 +79,8 @@ describe('History', () => {
expect(response.body[0].title).toEqual(entryDto.title);
expect(response.body[0].tags).toEqual(entryDto.tags);
expect(response.body[0].pinStatus).toEqual(entryDto.pinStatus);
expect(response.body[0].lastVisited).toEqual(
entryDto.lastVisited.toISOString(),
expect(response.body[0].lastVisitedAt).toEqual(
entryDto.lastVisitedAt.toISOString(),
);
});
@ -218,7 +218,7 @@ describe('History', () => {
expect(userEntryDto.title).toEqual(entryDto.title);
expect(userEntryDto.tags).toEqual(entryDto.tags);
expect(userEntryDto.pinStatus).toEqual(entryDto.pinStatus);
expect(userEntryDto.lastVisited).toEqual(entryDto.lastVisited);
expect(userEntryDto.lastVisitedAt).toEqual(entryDto.lastVisitedAt);
});
afterAll(async () => {