WIP Roles and permissions access control.

This commit is contained in:
Ahmed Bouhuolia
2019-09-11 21:40:09 +02:00
parent 9a8de9ca7d
commit cba17739d6
24 changed files with 847 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
import { request, expect } from '~/testInit';
describe.only('routes: `/accountOpeningBalance`', () => {
describe('routes: `/accountOpeningBalance`', () => {
describe('POST `/accountOpeningBalance`', () => {
it('Should `accounts` be array type.', async () => {
const res = await request().post('/api/accountOpeningBalance').send({
@@ -28,7 +28,7 @@ describe.only('routes: `/accountOpeningBalance`', () => {
expect(res.status).equals(422);
});
it.only('Should `accounts.*.id` be exist in the storage.', async () => {
it('Should `accounts.*.id` be exist in the storage.', async () => {
const res = await request().post('/api/accountOpeningBalance').send({
accounts: [
{ id: 100, credit: 100, debit: 100 },