Updated unit test
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2023-03-08 07:44:56 +01:00
parent 3ad96b6ad7
commit 9050c06994
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ describe('worker filter()', () => {
}); });
it('should return 2 results filtering by name', async() => { it('should return 2 results filtering by name', async() => {
let result = await app.models.Worker.filter({args: {filter: {}, name: 'agency'}}); let result = await app.models.Worker.filter({args: {filter: {}, firstName: 'agency'}});
expect(result.length).toEqual(2); expect(result.length).toEqual(2);
expect(result[0].nickname).toEqual('agencyNick'); expect(result[0].nickname).toEqual('agencyNick');