Skip to content

Commit a3389e1

Browse files
committed
Adattati test a nuove validation policy
1 parent df09500 commit a3389e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('[PUT] /api/user/register: Registro Mario Rossi', function(assert) {
99
request(app).put('/api/user/register').send({
1010
firstName: "Mario",
1111
lastName: "Rossi",
12-
nickname: "Red",
12+
nickname: "red",
1313
password: "rossimario123",
1414
1515
biography: ""
@@ -20,7 +20,7 @@ test('[PUT] /api/user/register: Registro Mario Rossi', function(assert) {
2020
let expectedResult = {
2121
firstName: "Mario",
2222
lastName: "Rossi",
23-
nickname: "Red",
23+
nickname: "red",
2424
2525
biography: "",
2626
};
@@ -33,7 +33,7 @@ test('[PUT] /api/user/register: Registro Mario Rossi', function(assert) {
3333
test('[POST] /api/user/login: Faccio il login via username Red', function(assert) {
3434
assert.plan(4);
3535
request(app).post('/api/user/login').send({
36-
nickname: "Red",
36+
nickname: "red",
3737
password: "rossimario123",
3838
persistent: true,
3939
})
@@ -109,7 +109,7 @@ test('[PUT] /api/user/register: Provo a registrare un utente duplicato', functio
109109
request(app).put('/api/user/register').send({
110110
firstName: "Mario",
111111
lastName: "Rossi",
112-
nickname: "Red",
112+
nickname: "red",
113113
password: "rossimario123",
114114
115115
biography: ""

0 commit comments

Comments
 (0)