Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Nov 28, 2023
1 parent 9e82c45 commit 4607e09
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ describe('OidcProvisioningService', () => {
externalId: 'externalId',
name: 'existingName',
officialSchoolNumber: 'existingOfficialSchoolNumber',
systems: [],
systems: undefined,
features: [SchoolFeatures.OAUTH_PROVISIONING_ENABLED],
});

Expand Down Expand Up @@ -882,7 +882,7 @@ describe('OidcProvisioningService', () => {
});
});

describe('when provisioning an existing group with no other group members', () => {
describe('when provisioning an existing group with empty other group members', () => {
const setup = () => {
const student: UserDO = userDoFactory
.withRoles([{ id: new ObjectId().toHexString(), name: RoleName.STUDENT }])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class OidcProvisioningService {
}

private async getFilteredGroupUsers(externalGroup: ExternalGroupDto, systemId: string): Promise<GroupUser[]> {
if (!externalGroup.otherUsers) {
if (!externalGroup.otherUsers?.length) {
return [];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ describe('SanisStrategy', () => {
vorname: 'Hans',
familienname: 'Peter',
},
geburt: {
datum: '2023-11-17',
},
},
personenkontexte: [
{
Expand All @@ -99,6 +102,9 @@ describe('SanisStrategy', () => {
id: new UUID('df66c8e6-cfac-40f7-b35b-0da5d8ee680e').toString(),
name: 'schoolName',
kennung: 'Kennung',
anschrift: {
ort: 'Hannover',
},
},
gruppen: [
{
Expand Down

0 comments on commit 4607e09

Please sign in to comment.