Changed organisation* to organization* in descriptions, comments and endoints ✏
ref #117
This commit is contained in:
@@ -19,7 +19,7 @@ describe('adding + updating name', () => {
|
||||
let added_org_id
|
||||
let added_org
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res = await axios.post(base + '/api/organisations', {
|
||||
const res = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
added_org = res.data
|
||||
@@ -28,7 +28,7 @@ describe('adding + updating name', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json")
|
||||
});
|
||||
it('update org', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -59,7 +59,7 @@ describe('adding + try updating id (should return 406)', () => {
|
||||
let added_org_id
|
||||
let added_org
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res = await axios.post(base + '/api/organisations', {
|
||||
const res = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
added_org = res.data
|
||||
@@ -68,7 +68,7 @@ describe('adding + try updating id (should return 406)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json")
|
||||
});
|
||||
it('update org', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id + 1,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -83,7 +83,7 @@ describe('adding + updateing address valid)', () => {
|
||||
let added_org_id
|
||||
let added_org
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res = await axios.post(base + '/api/organisations', {
|
||||
const res = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
added_org = res.data
|
||||
@@ -92,7 +92,7 @@ describe('adding + updateing address valid)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json")
|
||||
});
|
||||
it('adding address to org should return 200', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -122,7 +122,7 @@ describe('adding + updateing address valid)', () => {
|
||||
});
|
||||
});
|
||||
it('updateing address\'s first line should return 200', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -152,7 +152,7 @@ describe('adding + updateing address valid)', () => {
|
||||
});
|
||||
});
|
||||
it('updateing address\'s second line should return 200', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -182,7 +182,7 @@ describe('adding + updateing address valid)', () => {
|
||||
});
|
||||
});
|
||||
it('updateing address\'s city should return 200', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -212,7 +212,7 @@ describe('adding + updateing address valid)', () => {
|
||||
});
|
||||
});
|
||||
it('updateing address\'s country should return 200', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -242,7 +242,7 @@ describe('adding + updateing address valid)', () => {
|
||||
});
|
||||
});
|
||||
it('updateing address\'s postal code should return 200', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -272,7 +272,7 @@ describe('adding + updateing address valid)', () => {
|
||||
});
|
||||
});
|
||||
it('removing org\'s address should return 200', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -300,7 +300,7 @@ describe('adding + updateing address invalid)', () => {
|
||||
let added_org_id
|
||||
let added_org
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res = await axios.post(base + '/api/organisations', {
|
||||
const res = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
added_org = res.data
|
||||
@@ -309,7 +309,7 @@ describe('adding + updateing address invalid)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json")
|
||||
});
|
||||
it('adding address to org w/o address1 should return 400', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -325,7 +325,7 @@ describe('adding + updateing address invalid)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
});
|
||||
it('adding address to org w/o city should return 400', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -341,7 +341,7 @@ describe('adding + updateing address invalid)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
});
|
||||
it('adding address to org w/o country should return 400', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -357,7 +357,7 @@ describe('adding + updateing address invalid)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
});
|
||||
it('adding address to org w/o postal code should return 400', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
@@ -373,7 +373,7 @@ describe('adding + updateing address invalid)', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
});
|
||||
it('adding address to org w/ invalid postal code should return 400', async () => {
|
||||
const res = await axios.put(base + '/api/organisations/' + added_org_id, {
|
||||
const res = await axios.put(base + '/api/organizations/' + added_org_id, {
|
||||
"id": added_org_id,
|
||||
"name": "testlelele",
|
||||
"contact": null,
|
||||
|
||||
Reference in New Issue
Block a user