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

write guest route test for GET /donations/report #9

Open
mirmahathir1 opened this issue May 5, 2024 · 0 comments
Open

write guest route test for GET /donations/report #9

mirmahathir1 opened this issue May 5, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mirmahathir1
Copy link
Member

Implement this test in report.test.js when you are done implementing the following issue
Badhan-BUET-Zone/badhan-backend#31

You can find a similar guest route testing implementation below:

test('PATCH/guest/users/password', async () => {
try {
let passwordResponse = await badhanAxios.patch("/guest/users/password");
let validationResult = validate(passwordResponse.data, patchPasswordSchema);
expect(validationResult.errors).toEqual([]);
}catch (e) {
throw processError(e);
}
})

@mirmahathir1 mirmahathir1 added the documentation Improvements or additions to documentation label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants