refactor: Use toStrictEqual instead of toEqual for tests

This commit is contained in:
Faruk AYDIN
2024-10-25 12:33:39 +02:00
parent 7a437660d1
commit 2e5b44c424
82 changed files with 116 additions and 112 deletions

View File

@@ -3,7 +3,6 @@ const getAppAuthClientMock = (appAuthClient) => {
data: {
name: appAuthClient.name,
id: appAuthClient.id,
appConfigId: appAuthClient.appConfigId,
active: appAuthClient.active,
},
meta: {

View File

@@ -10,7 +10,6 @@ const getUserMock = (currentUser, role) => {
description: null,
id: role.id,
isAdmin: role.isAdmin,
key: role.key,
name: role.name,
updatedAt: role.updatedAt.getTime(),
},

View File

@@ -13,7 +13,6 @@ const getUsersMock = async (users, roles) => {
description: role.description,
id: role.id,
isAdmin: role.isAdmin,
key: role.key,
name: role.name,
updatedAt: role.updatedAt.getTime(),
}

View File

@@ -3,7 +3,6 @@ const getAppAuthClientMock = (appAuthClient) => {
data: {
name: appAuthClient.name,
id: appAuthClient.id,
appConfigId: appAuthClient.appConfigId,
active: appAuthClient.active,
},
meta: {

View File

@@ -1,7 +1,6 @@
const getAppConfigMock = (appConfig) => {
return {
data: {
id: appConfig.id,
key: appConfig.key,
customConnectionAllowed: appConfig.customConnectionAllowed,
shared: appConfig.shared,

View File

@@ -19,7 +19,6 @@ const getCurrentUserMock = (currentUser, role, permissions) => {
description: null,
id: role.id,
isAdmin: role.isAdmin,
key: role.key,
name: role.name,
updatedAt: role.updatedAt.getTime(),
},