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