Passed
Push — master ( 7db79b...f0c033 )
by Sergey
02:16 queued 10s
created

TestAsyncFilterTwo.canAsync   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
1
import { IFilterPermission } from '../../../src/permissions/interfaces/filter.permission.interface';
2
import { Injectable } from '@nestjs/common';
3
4
@Injectable()
5
export class TestAsyncFilterTwo implements IFilterPermission {
6
7
  canAsync(params?: any[]): Promise<boolean> {
8
    return Promise.resolve(params[0]);
9
  }
10
11
}
12