fixing tslint issues

This commit is contained in:
Michael Hoennig 2019-05-02 11:28:40 +02:00
parent 13100a9010
commit 2dd3deb17b
2 changed files with 3 additions and 3 deletions

View File

@ -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];
});

View File

@ -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' });