test: Adjust get api tokens endpoint test to new serializer format

This commit is contained in:
Faruk AYDIN
2025-04-15 11:40:06 +02:00
parent 0d6dbffd8e
commit 4fb9967fb0

View File

@@ -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(),
};