Updates old tests to the new ss-ktokens

ref #112
This commit is contained in:
2021-01-21 19:08:21 +01:00
parent 46f9503543
commit a9843ed459
5 changed files with 26 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ describe('adding + updating name', () => {
"country": null,
"postalcode": null,
},
"registrationEnabled": false,
"teams": []
})
});
@@ -116,6 +117,7 @@ describe('adding + updateing address valid)', () => {
"country": "Burkina Faso",
"postalcode": "90174"
},
"registrationEnabled": false,
"teams": []
});
});
@@ -145,6 +147,7 @@ describe('adding + updateing address valid)', () => {
"country": "Burkina Faso",
"postalcode": "90174"
},
"registrationEnabled": false,
"teams": []
});
});
@@ -174,6 +177,7 @@ describe('adding + updateing address valid)', () => {
"country": "Burkina Faso",
"postalcode": "90174"
},
"registrationEnabled": false,
"teams": []
});
});
@@ -203,6 +207,7 @@ describe('adding + updateing address valid)', () => {
"country": "Burkina Faso",
"postalcode": "90174"
},
"registrationEnabled": false,
"teams": []
});
});
@@ -232,6 +237,7 @@ describe('adding + updateing address valid)', () => {
"country": "Germany",
"postalcode": "90174"
},
"registrationEnabled": false,
"teams": []
});
});
@@ -261,14 +267,15 @@ describe('adding + updateing address valid)', () => {
"country": "Germany",
"postalcode": "91065"
},
"registrationEnabled": false,
"teams": []
});
});
it('removing org\'s should return 200', async () => {
it('removing org\'s address should return 200', async () => {
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
"id": added_org_id,
"name": "testlelele",
"contact": null
"contact": null,
}, axios_config);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
@@ -283,6 +290,7 @@ describe('adding + updateing address valid)', () => {
"country": null,
"postalcode": null
},
"registrationEnabled": false,
"teams": []
});
});