Skip to content

Commit

Permalink
reverting changes to elementdefinition.constraintype.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelynJefferson committed Nov 29, 2024
1 parent c7e86c6 commit 761e93b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/fhirtypes/ElementDefinition.constrainType.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ describe('ElementDefinition', () => {
beforeAll(() => {
defs = new FHIRDefinitions();
loadFromPath(path.join(__dirname, '..', 'testhelpers', 'testdefs'), 'r4-definitions', defs);
pkg = new Package(minimalConfig);
fisher = new TestFisher().withFHIR(defs).withPackage(pkg);
jsonModifiedObservation = cloneDeep(defs.fishForFHIR('Observation', Type.Resource));
const createExtra = (id: string, ms: boolean) => {
return {
Expand Down Expand Up @@ -85,13 +87,11 @@ describe('ElementDefinition', () => {
null,
createExtra('related-person-extra', true)
];
exporter = new StructureDefinitionExporter(new FSHTank([], minimalConfig), pkg, fisher);
});

beforeEach(() => {
loggerSpy.reset();
pkg = new Package(minimalConfig);
fisher = new TestFisher().withFHIR(defs).withPackage(pkg);
exporter = new StructureDefinitionExporter(new FSHTank([], minimalConfig), pkg, fisher);
pkg.clearAllDefinitions(); // Clear packages so definitions from one test don't affect another test
observation = fisher.fishForStructureDefinition('Observation');
modifiedObservation = StructureDefinition.fromJSON(jsonModifiedObservation);
Expand Down

0 comments on commit 761e93b

Please sign in to comment.