diff --git a/apps/server/src/modules/pseudonym/service/pseudonym.service.spec.ts b/apps/server/src/modules/pseudonym/service/pseudonym.service.spec.ts index 0b6a0ef7b64..d7a382acedd 100644 --- a/apps/server/src/modules/pseudonym/service/pseudonym.service.spec.ts +++ b/apps/server/src/modules/pseudonym/service/pseudonym.service.spec.ts @@ -1,4 +1,5 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; +import { Configuration } from '@hpi-schul-cloud/commons/lib'; import { InternalServerErrorException, NotFoundException } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; import { IFindOptions, LtiToolDO, Page, Pseudonym, UserDO } from '@shared/domain'; @@ -503,4 +504,29 @@ describe('PseudonymService', () => { }); }); }); + + describe('getIframeSubject', () => { + describe('when pseudonym is given', () => { + const setup = () => { + const pseudonym = 'pseudonym'; + const host = 'https://host.de'; + Configuration.set('HOST', host); + + return { + pseudonym, + host, + }; + }; + + it('should return the iframeSubject', () => { + const { pseudonym, host } = setup(); + + const result: string = service.getIframeSubject(pseudonym); + + expect(result).toEqual( + `` + ); + }); + }); + }); });