Skip to content

Commit

Permalink
remove extra lodash dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharpandey13 committed Aug 21, 2024
1 parent 16d7e93 commit c829247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@
"homepage": "https://github.com/auth0/node-auth0",
"dependencies": {
"jose": "^4.13.2",
"lodash-es": "^4.17.21",
"undici-types": "^6.15.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^16.18.37",
"@types/node-fetch": "^2.6.3",
"@types/uuid": "^9.0.1",
Expand Down
17 changes: 6 additions & 11 deletions test/management/self-service-profiles.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import nock from 'nock';
import { isEqual } from 'lodash-es';

const DOMAIN = `tenant.auth0.com`;
const API_URL = `https://${DOMAIN}/api/v2`;
Expand Down Expand Up @@ -74,7 +73,7 @@ describe('SelfServiceProfilesManager', () => {

const createResult = await selfServiceProfileManager.postSelfServiceProfiles(requestBody);

expect(isEqual(createResult.data, nockedResponse)).toBe(true);
expect(createResult.data).toEqual(nockedResponse);
});
});

Expand Down Expand Up @@ -115,7 +114,7 @@ describe('SelfServiceProfilesManager', () => {

const getResult = await selfServiceProfileManager.getSelfServiceProfiles();

expect(isEqual(getResult.data, nockedResponse)).toBe(true);
expect(getResult.data).toEqual(nockedResponse);
expect(getResult.data.length).toBeGreaterThan(0);
});
});
Expand Down Expand Up @@ -165,8 +164,7 @@ describe('SelfServiceProfilesManager', () => {
const getResult = await selfServiceProfileManager.getSelfServiceProfilesById(
requestParameters
);

expect(isEqual(getResult.data, nockedResponse)).toBe(true);
expect(getResult.data).toEqual(nockedResponse);
});
});

Expand Down Expand Up @@ -261,7 +259,7 @@ describe('SelfServiceProfilesManager', () => {
requestBody
);

expect(isEqual(patchResult.data, nockedResponse)).toBe(true);
expect(patchResult.data).toEqual(nockedResponse);
});
});

Expand Down Expand Up @@ -308,12 +306,9 @@ describe('SelfServiceProfilesManager', () => {
.post(`/self-service-profiles/${requestParameters.id}/sso-ticket`)
.reply(200, nockedResponse);

const patchResult = await selfServiceProfileManager.postSsoTicket(
requestParameters,
requestBody
);
const result = await selfServiceProfileManager.postSsoTicket(requestParameters, requestBody);

expect(isEqual(patchResult.data, nockedResponse)).toBe(true);
expect(result.data).toEqual(nockedResponse);
});
});
});

0 comments on commit c829247

Please sign in to comment.