Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imprv/4425 add test to route users #3183

Closed
wants to merge 3 commits into from

Conversation

haruhikonyan
Copy link
Contributor

No description provided.

app.use(bodyParser.json());
const response = await request(app)
.post('/invite')
.send({ shapedEmailList: ['user'], sendEmail: false })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@haruhikonyan haruhikonyan force-pushed the imprv/4425-add-test-to-route-users branch from b7935b8 to c80a5f8 Compare December 1, 2020 23:47
@haruhikonyan haruhikonyan force-pushed the imprv/4425-add-test-to-route-users branch from c80a5f8 to b80f035 Compare December 1, 2020 23:55
app.use('/', require('~/server/routes/apiv3/users')(crowi));
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bodyが取れないってissueは散見されて
ladjs/supertest#168 (comment)
body-parser 入れればいいって意見もわりとあって入れてみても改善せず

@haruhikonyan haruhikonyan deleted the imprv/4425-add-test-to-route-users branch January 19, 2021 05:12
@haruhikonyan
Copy link
Contributor Author

一旦クローズ
https://youtrack.weseek.co.jp/issue/GW-4425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant