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

TestAsyncFilterOne   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 6
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A canAsync 0 3 1
1
import { IFilterPermission } from '../../../src/permissions/interfaces/filter.permission.interface';
2
import { Injectable } from '@nestjs/common';
3
4
@Injectable()
5
export class TestAsyncFilterOne implements IFilterPermission {
6
7
  canAsync(params?: any[]): Promise<boolean> {
8
    return Promise.resolve(params[0]);
9
  }
10
11
}
12