Changed organisation* to organization* in descriptions, comments and endoints ✏
ref #117
This commit is contained in:
@@ -80,7 +80,7 @@ describe('POST /api/runners with errors', () => {
|
||||
describe('POST /api/runners working', () => {
|
||||
let added_org_id;
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res1 = await axios.post(base + '/api/organisations', {
|
||||
const res1 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
let added_org = res1.data
|
||||
|
||||
@@ -25,7 +25,7 @@ describe('add+delete', () => {
|
||||
let added_org_id;
|
||||
let added_runner;
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res1 = await axios.post(base + '/api/organisations', {
|
||||
const res1 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
let added_org = res1.data
|
||||
@@ -71,7 +71,7 @@ describe('DELETE donor with donations invalid', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json")
|
||||
});
|
||||
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
|
||||
@@ -118,7 +118,7 @@ describe('DELETE donor with donations valid', () => {
|
||||
expect(res.headers['content-type']).toContain("application/json")
|
||||
});
|
||||
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
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('GET /api/runners after adding', () => {
|
||||
let added_org_id;
|
||||
let added_runner;
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res1 = await axios.post(base + '/api/organisations', {
|
||||
const res1 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
let added_org = res1.data
|
||||
|
||||
@@ -18,7 +18,7 @@ describe('Update runner name after adding', () => {
|
||||
let added_org;
|
||||
let added_runner;
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res1 = await axios.post(base + '/api/organisations', {
|
||||
const res1 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
delete res1.data.registrationEnabled;
|
||||
@@ -58,7 +58,7 @@ describe('Update runner group after adding', () => {
|
||||
let added_org_2;
|
||||
let added_runner;
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res1 = await axios.post(base + '/api/organisations', {
|
||||
const res1 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
let added_org = res1.data
|
||||
@@ -77,7 +77,7 @@ describe('Update runner group after adding', () => {
|
||||
expect(res2.headers['content-type']).toContain("application/json")
|
||||
});
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res3 = await axios.post(base + '/api/organisations', {
|
||||
const res3 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
added_org_2 = res3.data
|
||||
@@ -103,7 +103,7 @@ describe('Update runner id after adding(should fail)', () => {
|
||||
let added_runner;
|
||||
let added_runner_id;
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res1 = await axios.post(base + '/api/organisations', {
|
||||
const res1 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
let added_org = res1.data
|
||||
@@ -135,7 +135,7 @@ describe('Update runner group with invalid group after adding', () => {
|
||||
let added_org;
|
||||
let added_runner;
|
||||
it('creating a new org with just a name should return 200', async () => {
|
||||
const res1 = await axios.post(base + '/api/organisations', {
|
||||
const res1 = await axios.post(base + '/api/organizations', {
|
||||
"name": "test123"
|
||||
}, axios_config);
|
||||
added_org = res1.data
|
||||
|
||||
Reference in New Issue
Block a user