From 03c9e166a08ec7e30e6d0be8bac83a8b60485285 Mon Sep 17 00:00:00 2001 From: Bastian Rihm Date: Fri, 30 Aug 2024 10:52:03 +0200 Subject: [PATCH] Update test --- .../search-users-presenter.service.spec.ts | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/client/src/app/gateways/presenter/search-users-presenter.service.spec.ts b/client/src/app/gateways/presenter/search-users-presenter.service.spec.ts index 3b70487a66..126697e309 100644 --- a/client/src/app/gateways/presenter/search-users-presenter.service.spec.ts +++ b/client/src/app/gateways/presenter/search-users-presenter.service.spec.ts @@ -11,9 +11,27 @@ describe(`SearchUsersPresenterService`, () => { let presenter: MockPresenterService; const testUsers = [ - { id: 2, username: `johnDoe`, email: `john.doe@email.en`, first_name: `John`, last_name: `Doe` }, - { id: 3, username: `jd`, email: `joanna.doe@email.en`, first_name: `Joanna`, last_name: `Doe` }, - { id: 4, username: `johnsSecondAccount`, email: `john.doe@email.en`, first_name: `John`, last_name: `Doe` }, + { + id: 2, + username: `johnDoe`, + email: `john.doe@email.en`, + first_name: `John`, + last_name: `Doe` + }, + { + id: 3, + username: `jd`, + email: `joanna.doe@email.en`, + first_name: `Joanna`, + last_name: `Doe` + }, + { + id: 4, + username: `johnsSecondAccount`, + email: `john.doe@email.en`, + first_name: `John`, + last_name: `Doe` + }, { id: 5, username: `rando`, first_name: `Rando`, last_name: `Mized` } ]; @@ -37,7 +55,10 @@ describe(`SearchUsersPresenterService`, () => { !search || typeof search !== `object` || Object.keys(search).some( - key => ![`username`, `saml_id`, `first_name`, `last_name`, `email`].includes(key) + key => + ![`username`, `saml_id`, `first_name`, `last_name`, `email`, `member_number`].includes( + key + ) ) ) ) {