Skip to content

Commit

Permalink
Clean up for loader tests
Browse files Browse the repository at this point in the history
Remove or combine duplicate tests.
Remove commented out code.
Small changes to values used in some tests to more accurately reflect
usage.
Add helper function for use in tests that check that a resource is being
loaded correctly.
Change message about a loaded file not being FHIR json from info to
debug, since this event is normal.
  • Loading branch information
mint-thompson committed Oct 7, 2024
1 parent abe5760 commit 0cc2f59
Show file tree
Hide file tree
Showing 6 changed files with 5,951 additions and 4,925 deletions.
2 changes: 1 addition & 1 deletion src/loader/BasePackageLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class BasePackageLoader implements PackageLoader {
this.loadResourceFromCache(resourcePath, packageName, packageVersion);
} catch {
// swallow this error because some JSON files will not be resources
this.log('info', `JSON file at path ${resourcePath} was not FHIR resource`);
this.log('debug', `JSON file at path ${resourcePath} was not FHIR resource`);
}
});
}
Expand Down
Loading

0 comments on commit 0cc2f59

Please sign in to comment.