Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Jul 5, 2024
1 parent e65781b commit 8d149ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createMock, DeepMocked } from '@golevelup/ts-jest';
import { schoolFactory } from '@modules/school/testing/school.factory';
import { Test, TestingModule } from '@nestjs/testing';
import { setupEntities, userFactory } from '@shared/testing';
import { schoolEntityFactory, setupEntities, userFactory } from '@shared/testing';
import { AuthorizationContextBuilder } from '../mapper';
import { AuthorizationHelper } from '../service/authorization.helper';
import { SchoolRule } from './school.rule';
Expand All @@ -23,7 +23,7 @@ describe('SchoolRule', () => {

const setupSchoolAndUser = () => {
const school = schoolFactory.build();
const user = userFactory.build({ school });
const user = userFactory.build({ school: schoolEntityFactory.buildWithId(undefined, school.id) });

return { school, user };
};
Expand Down

0 comments on commit 8d149ee

Please sign in to comment.