Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Aug 30, 2024
1 parent 32ab76a commit 03c9e16
Showing 1 changed file with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,27 @@ describe(`SearchUsersPresenterService`, () => {
let presenter: MockPresenterService;

const testUsers = [
{ id: 2, username: `johnDoe`, email: `[email protected]`, first_name: `John`, last_name: `Doe` },
{ id: 3, username: `jd`, email: `[email protected]`, first_name: `Joanna`, last_name: `Doe` },
{ id: 4, username: `johnsSecondAccount`, email: `[email protected]`, first_name: `John`, last_name: `Doe` },
{
id: 2,
username: `johnDoe`,
email: `[email protected]`,
first_name: `John`,
last_name: `Doe`
},
{
id: 3,
username: `jd`,
email: `[email protected]`,
first_name: `Joanna`,
last_name: `Doe`
},
{
id: 4,
username: `johnsSecondAccount`,
email: `[email protected]`,
first_name: `John`,
last_name: `Doe`
},
{ id: 5, username: `rando`, first_name: `Rando`, last_name: `Mized` }
];

Expand All @@ -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
)
)
)
) {
Expand Down

0 comments on commit 03c9e16

Please sign in to comment.