diff --git a/front/core/components/smart-table/index.spec.js b/front/core/components/smart-table/index.spec.js index 94edd45bb..b947f3ad1 100644 --- a/front/core/components/smart-table/index.spec.js +++ b/front/core/components/smart-table/index.spec.js @@ -96,9 +96,10 @@ describe('Component smartTable', () => { expect(firstSortCriteria.field).toEqual('id'); expect(firstSortCriteria.sortType).toEqual('ASC'); + expect(firstSortCriteria.priority).toEqual(1); }); - it('should insert two new objects to the controller sortCriteria with a sortType values of "ASC" and "DESC"', () => { + it('should add new entries to the controller sortCriteria with a sortType values of "ASC" and "DESC"', () => { const element = document.createElement('div'); controller.model = {order: 'test1, id DESC'}; controller.columns = [ @@ -114,8 +115,10 @@ describe('Component smartTable', () => { expect(firstSortCriteria.field).toEqual('test1'); expect(firstSortCriteria.sortType).toEqual('ASC'); + expect(firstSortCriteria.priority).toEqual(1); expect(secondSortCriteria.field).toEqual('id'); expect(secondSortCriteria.sortType).toEqual('DESC'); + expect(firstSortCriteria.priority).toEqual(2); }); }); diff --git a/loopback/locale/en.json b/loopback/locale/en.json index 15c65fd89..7d675cb13 100644 --- a/loopback/locale/en.json +++ b/loopback/locale/en.json @@ -119,5 +119,6 @@ "The PDF document does not exists": "The PDF document does not exists. Try regenerating it from 'Regenerate invoice PDF' option", "This item is not available": "This item is not available", "Deny buy request": "Purchase request for ticket id [{{ticketId}}]({{{url}}}) has been rejected. Reason: {{observation}}", - "The type of business must be filled in basic data": "The type of business must be filled in basic data" + "The type of business must be filled in basic data": "The type of business must be filled in basic data", + "The worker has hours recorded that day": "The worker has hours recorded that day" } \ No newline at end of file