test: Adjust get api tokens endpoint test to new serializer format
This commit is contained in:
@@ -2,7 +2,10 @@ const getApiTokensMock = async (apiTokens) => {
|
||||
const data = apiTokens.map((apiToken) => {
|
||||
return {
|
||||
id: apiToken.id,
|
||||
token: apiToken.token,
|
||||
token:
|
||||
apiToken.token.substring(0, 4) +
|
||||
'...' +
|
||||
apiToken.token.substring(apiToken.token.length - 4),
|
||||
createdAt: apiToken.createdAt.getTime(),
|
||||
updatedAt: apiToken.updatedAt.getTime(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user