Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tnramalho committed Oct 10, 2024
1 parent 192477b commit a684cf3
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import {
ExecutionContext,
Get,
INestApplication,
UseInterceptors,
} from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { Test, TestingModule } from '@nestjs/testing';
import { ApiResponse, ApiTags } from '@nestjs/swagger';
import { Test, TestingModule } from '@nestjs/testing';
import { AccessControl } from 'accesscontrol';
import supertest from 'supertest';
import { AccessControlModule } from '../access-control.module';
Expand All @@ -16,7 +15,6 @@ import { AccessControlReadOne } from '../decorators/access-control-read-one.deco
import { AccessControlOptionsInterface } from '../interfaces/access-control-options.interface';
import { AccessControlServiceInterface } from '../interfaces/access-control-service.interface';
import { AccessControlService } from '../services/access-control.service';
import { AccessControlFilter } from './access-control.filter';

describe('AccessControlFilter', () => {
const resourceGetAll = 'resource_get_all';
Expand Down Expand Up @@ -208,15 +206,18 @@ describe('AccessControlFilter', () => {
await supertest(app.getHttpServer())
.get('/users')
.expect(200)
.expect([{
firstName: USER_1.firstName,
lastName: USER_1.lastName,
dob: USER_1.dob,
}, {
firstName: USER_2.firstName,
lastName: USER_2.lastName,
dob: USER_2.dob,
}]);
.expect([
{
firstName: USER_1.firstName,
lastName: USER_1.lastName,
dob: USER_1.dob,
},
{
firstName: USER_2.firstName,
lastName: USER_2.lastName,
dob: USER_2.dob,
},
]);
});

it('should all objects when second role has permission', async () => {
Expand Down

0 comments on commit a684cf3

Please sign in to comment.