Skip to content

Commit

Permalink
Fix schoolFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedwiper committed Nov 9, 2023
1 parent 741de80 commit 0115ba9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { BaseFactory } from '@shared/testing';
import { ObjectId } from 'bson';
import { School, SchoolProps } from '../do';
import { SchoolFeature } from '../type';
import { federalStateFactory } from './federal-state.factory';
import { schoolYearFactory } from './school-year.factory';

Expand All @@ -10,6 +11,6 @@ export const schoolFactory = BaseFactory.define<School, SchoolProps>(School, ({
name: `school #${sequence}`,
currentYear: schoolYearFactory.build(),
federalState: federalStateFactory.build(),
features: new Set(),
features: new Set<SchoolFeature>(),
};
});

0 comments on commit 0115ba9

Please sign in to comment.