Skip to content

Commit

Permalink
Fix/imports (#114)
Browse files Browse the repository at this point in the history
* fix: export ValidationErrorWithoutProperty

* fix: update imports
  • Loading branch information
jkoenig134 authored Apr 24, 2024
1 parent c7ecde4 commit c317bb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion packages/content/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export * from "./ContentJSON";
export * from "./attributes";
export * from "./buildInformation";
export * from "./ContentJSON";
export * from "./messages/Mail";
export * from "./notifications";
export * from "./relationships";
export * from "./requests";
export * from "./ValidationErrorWithoutProperty";
8 changes: 2 additions & 6 deletions packages/content/test/attributes/BirthDate.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { UserfriendlyApplicationError } from "@nmshd/app-runtime/src/UserfriendlyApplicationError";
import { BirthDate } from "@nmshd/content";
import { ValidationErrorWithoutProperty } from "@nmshd/content/src/ValidationErrorWithoutProperty";
import { BirthDate, ValidationErrorWithoutProperty } from "@nmshd/content";
import { DateTime } from "luxon";

describe("creation of RepositoryAttributes of Attribute Value Type BirthDate", () => {
Expand All @@ -16,9 +14,7 @@ describe("creation of RepositoryAttributes of Attribute Value Type BirthDate", (
const invalidBirthDateCall = () => {
BirthDate.from({ day: 1, month: 13, year: 1990 });
};
expect(invalidBirthDateCall).toThrow(
new UserfriendlyApplicationError("error.runtime.requestDeserialization", "BirthMonth.value:Number :: must be an integer value between 1 and 12")
);
expect(invalidBirthDateCall).toThrow("BirthMonth.value:Number :: must be an integer value between 1 and 12");
});

test("returns an error when trying to create an invalid BirthDate with cross-component violated validation criteria for June", function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/dataViews/DataViewExpander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ import {
ShareAttributeAcceptResponseItemJSON,
ShareAttributeRequestItemJSON,
SurnameJSON,
ThirdPartyRelationshipAttributeQueryJSON,
ValueHints,
ValueHintsJSON
} from "@nmshd/content";
import { ThirdPartyRelationshipAttributeQueryJSON } from "@nmshd/content/dist/attributes/ThirdPartyRelationshipAttributeQuery";
import { CoreAddress, CoreId, IdentityController, Realm, Relationship, RelationshipStatus } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import {
Expand Down

0 comments on commit c317bb1

Please sign in to comment.