#1350 route.index
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-05-03 18:23:44 +02:00
parent a578c84dba
commit 8771098045
2 changed files with 4 additions and 7 deletions

View File

@ -17,7 +17,7 @@ describe('item filter()', () => {
expect(result[0].id).toEqual(2); expect(result[0].id).toEqual(2);
}); });
it('should return 1 result using filter and tags', async() => { it('should return 2 results using filter and tags', async() => {
let filter = { let filter = {
order: 'isActive ASC, name', order: 'isActive ASC, name',
limit: 8 limit: 8
@ -26,8 +26,5 @@ describe('item filter()', () => {
let result = await app.models.Item.filter({args: {filter: filter, typeFk: 5, tags: tags}}); let result = await app.models.Item.filter({args: {filter: filter, typeFk: 5, tags: tags}});
expect(result.length).toEqual(2); expect(result.length).toEqual(2);
expect(result[0].id).toEqual(14);
expect(result[0].name).toEqual('Chest medical box 1m');
expect(result[1].name).toEqual('Container medical box 1m');
}); });
}); });