Passed
Pull Request — master (#65)
by
unknown
02:04
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