Skip to content

Commit

Permalink
chore(README.md): remove unnecessary empty line
Browse files Browse the repository at this point in the history
chore(package.json): update dependencies versions
test(update.spec.ts): update faker method for generating speaks array
test(upsert.spec.ts): update faker method for generating speaks array
test(customer.spec.ts): update faker method for generating speaks array
test(user.spec.ts): update faker method for generating speaks array
fix(location.ts): update faker method for generating latitude and longitude
fix(user.ts): update faker method for generating speaks array
  • Loading branch information
jamalsoueidan committed Oct 12, 2023
1 parent 7509b63 commit 8276572
Show file tree
Hide file tree
Showing 9 changed files with 5,794 additions and 5,587 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,3 @@ let responseJson = pm.response.json();
let token = responseJson.payload.token;
pm.environment.set("bearerToken", token);
```

.
11,327 changes: 5,768 additions & 5,559 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@
"generate-ts": "npm run bundle && npx orval --config ./orval.config.js"
},
"dependencies": {
"@azure/functions": "^4.0.0-alpha.9",
"@types/jsonwebtoken": "^9.0.1",
"axios": "^1.4.0",
"@azure/functions": "^4.0.1",
"@types/jsonwebtoken": "^9.0.3",
"axios": "^1.5.1",
"bcryptjs": "^2.4.3",
"date-fns": "^2.29.3",
"durable-functions": "^3.0.0-alpha.4",
"date-fns": "^2.30.0",
"durable-functions": "^3.0.0",
"generate-password": "^1.7.0",
"graphql-request": "^5.2.0",
"jsonwebtoken": "^9.0.0",
"module-alias": "^2.2.2",
"mongoose": "^7.3.1",
"zod": "^3.21.4"
"graphql-request": "^6.1.0",
"jsonwebtoken": "^9.0.2",
"module-alias": "^2.2.3",
"mongoose": "^7.6.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"@types/bcryptjs": "^2.4.2",
"@types/jest": "^29.5.0",
"@types/node": "^18.x",
"@faker-js/faker": "^8.1.0",
"@types/bcryptjs": "^2.4.4",
"@types/jest": "^29.5.5",
"@types/node": "^20.x",
"date-fns-tz": "^2.0.0",
"fs": "^0.0.1-security",
"jest": "^29.5.0",
"mongodb-memory-server": "^8.12.1",
"orval": "^6.16.0",
"ts-jest": "^29.0.5",
"typescript": "^4.0.0"
"jest": "^29.7.0",
"mongodb-memory-server": "^9.0.0",
"orval": "^6.18.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"main": "dist/src/functions/*.js"
}
2 changes: 1 addition & 1 deletion src/functions/customer/controllers/customer/update.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("CustomerControllerUpdate", () => {
fullname: "test",
username: faker.internet.userName(),
aboutMe: faker.lorem.paragraph(),
speaks: [faker.random.locale()],
speaks: [faker.location.countryCode()],
images: {
profile: {
url: faker.internet.avatar(),
Expand Down
2 changes: 1 addition & 1 deletion src/functions/customer/controllers/customer/upsert.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("CustomerControllerUpsert", () => {
yearsExperience: 1,
username: faker.internet.userName(),
aboutMe: faker.lorem.paragraph(),
speaks: [faker.random.locale()],
speaks: [faker.location.countryCode()],
images: {
profile: {
url: faker.internet.avatar(),
Expand Down
2 changes: 1 addition & 1 deletion src/functions/customer/services/customer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("CustomerService", () => {
},
},
locations: [],
speaks: [faker.random.locale()],
speaks: [faker.location.countryCode()],
isBusiness: true,
};

Expand Down
2 changes: 1 addition & 1 deletion src/functions/user/services/user.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("UserService", () => {
fullname: faker.name.fullName(),
shortDescription: faker.lorem.paragraph(),
aboutMe: faker.lorem.paragraph(),
speaks: [faker.random.locale()],
speaks: [faker.location.countryCode()],
active: true,
isBusiness: true,
locations: [],
Expand Down
4 changes: 2 additions & 2 deletions src/library/jest/helpers/location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const createLocation = (
const location = new LocationModel(getLocationObject(filter));
location.geoLocation.type = "Point";
location.geoLocation.coordinates = [
parseFloat(faker.address.latitude()),
parseFloat(faker.address.longitude()),
faker.location.latitude(),
faker.location.longitude(),
];
location.handle = faker.internet.userName();
return location.save();
Expand Down
2 changes: 1 addition & 1 deletion src/library/jest/helpers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const getUserObject = (props: Partial<User> = {}) => ({
active: true,
isBusiness: true,
avatar: faker.internet.avatar(),
speaks: [faker.random.locale()],
speaks: [faker.location.countryCode()],
locations: [],
...props,
});
Expand Down

0 comments on commit 8276572

Please sign in to comment.