From 761e93bc24b08516cb4d0f00bb9cbaa54a2c9560 Mon Sep 17 00:00:00 2001 From: kjefferson Date: Fri, 29 Nov 2024 14:18:05 -0500 Subject: [PATCH] reverting changes to elementdefinition.constraintype.test.ts --- test/fhirtypes/ElementDefinition.constrainType.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fhirtypes/ElementDefinition.constrainType.test.ts b/test/fhirtypes/ElementDefinition.constrainType.test.ts index 075e1aa89..32bc59527 100644 --- a/test/fhirtypes/ElementDefinition.constrainType.test.ts +++ b/test/fhirtypes/ElementDefinition.constrainType.test.ts @@ -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 { @@ -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);