Skip to content

Commit

Permalink
Front-end:
Browse files Browse the repository at this point in the history
	The profile details in the User Profile page now communicates
	with back-end.
issue: #338
  • Loading branch information
alonttal committed Apr 28, 2018
1 parent 9dc3a26 commit 16a8302
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 287 deletions.
88 changes: 44 additions & 44 deletions tests/seed/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ const apartment1 = new Apartment({
totalRoommates: 3,
_notificationSubscribers: [user2Id],
visits: [{
_id: apartment1User1VisitId,
_askedBy: user1Id,
createdAt: new Date('1-1-2018').getTime(),
scheduledTo: new Date('1-1-2019').getTime(),
status: visit.getVisitStatusOnCreate()
},
{
_id: apartment1User2VisitId,
_askedBy: user2Id,
createdAt: new Date('1-1-2018').getTime(),
scheduledTo: new Date('1-1-2019').getTime(),
status: visit.getVisitStatusOnCreate()
}
_id: apartment1User1VisitId,
_askedBy: user1Id,
createdAt: new Date('1-1-2018').getTime(),
scheduledTo: new Date('1-1-2019').getTime(),
status: visit.getVisitStatusOnCreate()
},
{
_id: apartment1User2VisitId,
_askedBy: user2Id,
createdAt: new Date('1-1-2018').getTime(),
scheduledTo: new Date('1-1-2019').getTime(),
status: visit.getVisitStatusOnCreate()
}
],
//comments
});
Expand Down Expand Up @@ -268,14 +268,14 @@ const review1 = {
street: 'shalom Aleichem',
city: 'haifa',
state: 'israel',
geolocation: [35.020568, 32.776515],//[32.7824885, 35.0177497],
ratedCharacteristics:{
geolocation: [35.020568, 32.776515], // [32.7824885, 35.0177497],
ratedCharacteristics: {
parking: 3,
publicTransport: 3,
noise: 3,
commercialServices: 3,
upkeep: 3,
generalRating: 3
publicTransport: 3,
noise: 3,
commercialServices: 3,
upkeep: 3,
generalRating: 3
},
Pros: 'looks good,smells nice',
Cons: 'no parks and no parking'
Expand All @@ -288,38 +288,38 @@ const review2 = {
street: 'malal street',
city: 'haifa',
state: 'israel',
geolocation: [35.020568, 32.776515],//[32.7793633, 35.0157763],
ratedCharacteristics:{
geolocation: [35.020568, 32.776515], // [32.7793633, 35.0157763],
ratedCharacteristics: {
parking: 1,
publicTransport: 1,
noise: 1,
commercialServices: 1,
upkeep: 1,
generalRating: 1
publicTransport: 1,
noise: 1,
commercialServices: 1,
upkeep: 1,
generalRating: 1
},
Pros: 'looks good,smells nice',
Cons: 'no parks and no parking what so ever'
};

const notPublishedReview1 = {
// _id: review2Id,
// _createdBy: new ObjectID(),
// createdAt: Date.now(),
street: 'derech ruppin',
city: 'jerusalem',
state: 'israel',
// geolocation: [35.020568, 32.776515],//[32.7793633, 35.0157763],
ratedCharacteristics:{
// geolocation: [35.020568, 32.776515], // [32.7793633, 35.0157763],
ratedCharacteristics: {
parking: 4,
publicTransport: 4,
noise: 4,
commercialServices: 4,
upkeep: 4,
generalRating: 4,
publicTransport: 4,
noise: 4,
commercialServices: 4,
upkeep: 4,
generalRating: 4,
},
Pros: 'looks good,smells nice but so odd',
Cons: 'no parks and no parking what so ever'
}
};

const notPublishedReview2 = {
// _id: review2Id,
Expand All @@ -328,18 +328,18 @@ const notPublishedReview2 = {
street: 'malal street',
city: 'haifa',
state: 'israel',
// geolocation: [35.020568, 32.776515],//[32.7793633, 35.0157763],
ratedCharacteristics:{
// geolocation: [35.020568, 32.776515], // [32.7793633, 35.0157763],
ratedCharacteristics: {
parking: 2,
publicTransport: 1,
noise: 1,
commercialServices: 5,
upkeep: 1,
generalRating: 3,
publicTransport: 1,
noise: 1,
commercialServices: 5,
upkeep: 1,
generalRating: 3,
},
Pros: 'looks good,smells nice but so odd',
Cons: 'no parks and no parking what so ever'
}
};

const apartments = [
apartment1,
Expand Down
Loading

0 comments on commit 16a8302

Please sign in to comment.