Skip to content

Commit

Permalink
fixing errors b00tc4mp#209
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosLemonCode committed Sep 24, 2024
1 parent 90e1d8c commit 6851005
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 53 deletions.
53 changes: 1 addition & 52 deletions staff/carlos-fernandez/json-bbdd/database/users.json
Original file line number Diff line number Diff line change
@@ -1,52 +1 @@
{
"users": [
{
"id": 0,
"name": "Limón",
"birth_date": "1985-01-04",
"phone": "+34 111111111",
"email": "[email protected]",
"password": "12345678"
},
{
"id": 1,
"name": "Borja",
"birth_date": "1995-08-30",
"phone": "+34 987654321",
"email": "[email protected]",
"password": "12345678"
},
{
"id": 2,
"name": "Pepito",
"birth_date": "1995-08-30",
"phone": "+34 987654321",
"email": "[email protected]",
"password": "12345678"
},
{
"id": 3,
"name": "Rafa",
"birth_date": "1983-02-07",
"phone": "+34 123456789",
"email": "[email protected]",
"password": "12345678"
},
{
"id": 4,
"name": "Rafa",
"birth_date": "1983-02-07",
"phone": "+34 123456789",
"email": "[email protected]",
"password": "12345678"
},
{
"id": 5,
"name": "ventu",
"birth_date": "2000-01-02",
"phone": "+34 987654321",
"email": "[email protected]",
"password": "123456789"
}
]
}
{"users":[{"id":0,"name":"Limón","birth_date":"1985-01-04","phone":"+34 111111111","email":"[email protected]","password":"12345678"},{"id":1,"name":"Borja","birth_date":"1995-08-30","phone":"+34 987654321","email":"[email protected]","password":"12345678"},{"id":2,"name":"Pepito","birth_date":"1995-08-30","phone":"+34 987654321","email":"[email protected]","password":"12345678"},{"id":3,"name":"Rafa","birth_date":"1983-02-07","phone":"+34 123456789","email":"[email protected]","password":"12345678"},{"id":4,"name":"Rafa","birth_date":"1983-02-07","phone":"+34 123456789","email":"[email protected]","password":"12345678"},{"id":5,"name":"ventu","birth_date":"2000-01-02","phone":"+34 987654321","email":"[email protected]","password":"123456789"}]}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ describe("Users scripts", function () {
email: "[email protected]",
password: "123456789",
};
users.createOne(data, (id) => {
users.createOne(data, (err, id) => {
if (err) throw err;
assert.isNumber(id, "id is not a number");
fs.readFile(
path.join(__dirname, "../../database/users.json"),
Expand Down

0 comments on commit 6851005

Please sign in to comment.