Skip to content
Permalink
Browse files

Organization settings extended (#71)

* Organization settings extended

* Organization settings extended
  • Loading branch information...
lazar-eric committed Apr 6, 2019
1 parent 4621066 commit 464f6bdf9f74f9fc9c4528601a97a4a8e0255e43
Showing with 24 additions and 3 deletions.
  1. +20 −2 src/validation/schemas/organization.schema.ts
  2. +4 −1 test/controller/organization.controller.spec.ts
@@ -26,7 +26,16 @@ export const organizationSchema = {
"type": "string",
"minLength": 2,
"maxLength": 255
}
},
"logo": {
"type": "string",
},
"colorPrimary": {
"type": "string",
},
"colorSecondary": {
"type": "string",
},
},
"additionalProperties": false,
"required": [
@@ -64,7 +73,16 @@ export const organizationSchema = {
"organizationId": {
"type": "integer",
"minimum": 1
}
},
"logo": {
"type": "string",
},
"colorPrimary": {
"type": "string",
},
"colorSecondary": {
"type": "string",
},
},
"additionalProperties": false,
"required": [
@@ -162,7 +162,7 @@ describe('(Controller) Organization /organization', () => {

});

describe('(POST) /:organizationId/accounts', () => {
describe('(POST) /organization', () => {

it('success as super_account', done => {
chai.request(app_server)
@@ -171,6 +171,9 @@ describe('(Controller) Organization /organization', () => {
owner: '0x2Cb65761Be6DB9fA05bA2720D1c31c1e10B3Bb3b',
title: 'Organization for new account',
active: true,
logo: 'somelogo',
colorPrimary: 'blue',
colorSecondary: 'green',
})
.set('Authorization', `AMB_TOKEN ${tokens.super_account}`)
.end((err, res) => {

0 comments on commit 464f6bd

Please sign in to comment.
You can’t perform that action at this time.