fixing tslint issues
This commit is contained in:
parent
13100a9010
commit
2dd3deb17b
@ -27,7 +27,7 @@ export class TableFilter<T extends {}> {
|
||||
}
|
||||
|
||||
buildQueryCriteria() {
|
||||
let queryCriteria: T = {} as any;
|
||||
const queryCriteria: T = {} as any;
|
||||
Object.keys(this.criteria).forEach(e => {
|
||||
queryCriteria[e + '.' + this.query[e]] = this.criteria[e];
|
||||
});
|
||||
|
@ -23,7 +23,7 @@ describe('TableFilter Tests', () => {
|
||||
|
||||
// when
|
||||
filter.trigger();
|
||||
let triggerStartedAtMillis = Date.now();
|
||||
const triggerStartedAtMillis = Date.now();
|
||||
|
||||
// then
|
||||
asynchronously = () => {
|
||||
@ -57,7 +57,7 @@ describe('TableFilter Tests', () => {
|
||||
filter.criteria.name = 'test value';
|
||||
|
||||
// when
|
||||
let actual = filter.buildQueryCriteria();
|
||||
const actual = filter.buildQueryCriteria();
|
||||
|
||||
// then
|
||||
expect(filter.buildQueryCriteria()).toEqual({ 'name.contains': 'test value' });
|
||||
|
Loading…
Reference in New Issue
Block a user