formbuilder-lhcforms 6.4.6 → 6.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -844,6 +844,19 @@ describe('GET /', function () {
844
844
  expect(fb.questionCodeSystem.getAttribute('value')).toBe('http://loinc.org/modified');
845
845
  expect(fb.questionCode.getAttribute('value')).toBe('Modified_12345-6');
846
846
  });
847
+
848
+ it('should load a form after loading a form with valuesets', function(done) {
849
+ const valueSetForm = path.join(__dirname, './fixtures/54127-6-x.json');
850
+ const normalForm = path.join(__dirname, './fixtures/phq9.json');
851
+ fb.cleanupSideBar(); // Clear any existing form items
852
+ Promise.all([util.loadLFormFromDisk(valueSetForm, 'R4'), util.loadLFormFromDisk(normalForm, 'R4')])
853
+ .then((previewSrc) => {
854
+ const q = JSON.parse(previewSrc);
855
+ expect(q.item.length > 0).toBeTruthy();
856
+ done();
857
+ })
858
+ .catch((err) => {done(err);});
859
+ });
847
860
  });
848
861
 
849
862
  describe('Loading form with css styles', function () {