Updated unit test
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
3ad96b6ad7
commit
9050c06994
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue