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) => {
|
const data = apiTokens.map((apiToken) => {
|
||||||
return {
|
return {
|
||||||
id: apiToken.id,
|
id: apiToken.id,
|
||||||
token: apiToken.token,
|
token:
|
||||||
|
apiToken.token.substring(0, 4) +
|
||||||
|
'...' +
|
||||||
|
apiToken.token.substring(apiToken.token.length - 4),
|
||||||
createdAt: apiToken.createdAt.getTime(),
|
createdAt: apiToken.createdAt.getTime(),
|
||||||
updatedAt: apiToken.updatedAt.getTime(),
|
updatedAt: apiToken.updatedAt.getTime(),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user