parent
a578c84dba
commit
8771098045
|
@ -17,7 +17,7 @@ describe('item filter()', () => {
|
|||
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 = {
|
||||
order: 'isActive ASC, name',
|
||||
limit: 8
|
||||
|
@ -26,8 +26,5 @@ describe('item filter()', () => {
|
|||
let result = await app.models.Item.filter({args: {filter: filter, typeFk: 5, tags: tags}});
|
||||
|
||||
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');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue