- Booking Event (with email to user and admin)

- Cancel Event (with email to user and admin)
- Store into mongodb
This commit is contained in:
Paolo Arena
2019-10-05 20:01:56 +02:00
parent 507f465313
commit 8f69856c57
37 changed files with 758 additions and 46 deletions

View File

@@ -16,6 +16,8 @@ let jsonUser1 = {
email: "paolo.arena77@gmail.com",
password: "$2a$12$hTv40mdq.x35Up7HQ9faae1JgHrohcvp45vt8eMkGhQv/Zv.8.MIG",
username: "paoloar77",
name: 'Paolo',
surname: 'Arena',
idapp: "1",
lang: "it",
keyappid: "KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
@@ -46,6 +48,8 @@ if (testsingolo) {
// .set('x-auth', users[0].tokens[0].token)
.send({
username: users[0].username,
name: users[0].name,
surname: users[0].surname,
password: mypwdchiaro,
idapp: users[0].idapp,
keyappid: users[0].keyappid,
@@ -86,6 +90,8 @@ if (testsingolo) {
expect(res.body._id).toExist();
expect(res.body.email).toBe(users[IndexUserToCreate].email);
expect(res.body.username).toBe(users[IndexUserToCreate].username);
expect(res.body.name).toBe(users[IndexUserToCreate].name);
expect(res.body.surname).toBe(users[IndexUserToCreate].surname);
})
.end((err) => {
if (err) {