mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
WIP Items module.
This commit is contained in:
42
server/tests/routes/users.test.js
Normal file
42
server/tests/routes/users.test.js
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
describe('routes: `/routes`', () => {
|
||||
describe('POST: `/routes`', () => {
|
||||
it('Should create a new user if the user was not authorized.', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Should `email` be required.', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Should `password` be required.', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Should `status` be boolean', () => {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('DELETE: `/users/:id`', () => {
|
||||
it('Should not success if the user was not authorized.', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Should not success if the user was pre-defined user.', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Should response not found if the user was not exist.', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Should response success if the user was exist.', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Should delete the give user after success response.', () => {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user