refactor: Use toStrictEqual instead of toEqual for tests
This commit is contained in:
@@ -3,7 +3,6 @@ const getAppAuthClientMock = (appAuthClient) => {
|
||||
data: {
|
||||
name: appAuthClient.name,
|
||||
id: appAuthClient.id,
|
||||
appConfigId: appAuthClient.appConfigId,
|
||||
active: appAuthClient.active,
|
||||
},
|
||||
meta: {
|
||||
|
@@ -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(),
|
||||
},
|
||||
|
@@ -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(),
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@ const getAppAuthClientMock = (appAuthClient) => {
|
||||
data: {
|
||||
name: appAuthClient.name,
|
||||
id: appAuthClient.id,
|
||||
appConfigId: appAuthClient.appConfigId,
|
||||
active: appAuthClient.active,
|
||||
},
|
||||
meta: {
|
||||
|
@@ -1,7 +1,6 @@
|
||||
const getAppConfigMock = (appConfig) => {
|
||||
return {
|
||||
data: {
|
||||
id: appConfig.id,
|
||||
key: appConfig.key,
|
||||
customConnectionAllowed: appConfig.customConnectionAllowed,
|
||||
shared: appConfig.shared,
|
||||
|
@@ -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(),
|
||||
},
|
||||
|
Reference in New Issue
Block a user