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

test/fixtures/filters/test.async.filter.two.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
mnd 0
bc 0
fnc 1
dl 0
loc 12
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A TestAsyncFilterTwo.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 TestAsyncFilterTwo implements IFilterPermission {
6
7
  canAsync(params?: any[]): Promise<boolean> {
8
    return Promise.resolve(params[0]);
9
  }
10
11
}
12