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

fix tests #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix tests #19

wants to merge 1 commit into from

Conversation

butlerx
Copy link
Contributor

@butlerx butlerx commented Nov 12, 2017

No description provided.

test/skeleton.js Outdated
@@ -86,7 +86,7 @@ describe('cp-organisations-service-controller', () => {
});
//
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
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

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
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
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