Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

fix tests#19

Open
butlerx wants to merge 1 commit intoCoderDojo:masterfrom
butlerx:testing
Open

fix tests#19
butlerx wants to merge 1 commit intoCoderDojo:masterfrom
butlerx:testing

Conversation

@butlerx
Copy link
Copy Markdown
Contributor

@butlerx butlerx commented Nov 12, 2017

No description provided.

Comment thread test/skeleton.js Outdated
//
it('should validate controllers acts with joi', (done) => {
seneca.act({ role: 'cd-organisations', ctrl: 'auth', cmd: 'authorize', dojoId: {} }, (err, app) => {
seneca.act({ role: 'cd-organisations', ctrl: 'org', cmd: 'create', org: {} }, (err, app) => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the wrong command for this test i just cant find a good one

Comment thread test/skeleton.js
const app = seneca.export('cd-organisations/acts').event;
app.get({ id: {} })
const app = seneca.export('cd-organisations/acts').org;
app.get({ org: undefined})
Copy link
Copy Markdown
Contributor

@Wardormeur Wardormeur Dec 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get takes an id : https://github.com/CoderDojo/cp-organisations-service/blob/master/lib/organisations/entities/org.js#L21
It's not "wrong" because we're testing a falsy scenario but still

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you told me to put in org: undefined

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants