Skip to content

Commit

Permalink
Add errorMessage and code to IdentityMetadata test (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 authored Oct 29, 2024
1 parent edecaf3 commit 5b75124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime/test/consumption/identityMetadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ describe("IdentityMetadata", () => {
expect(result).toBeSuccessful();

const identityMetadata = result.value;
expect(identityMetadata.reference.toString()).toStrictEqual(data.reference);
expect(identityMetadata.key).toStrictEqual(data.key);
expect(identityMetadata.value).toStrictEqual(data.value);
});

Expand All @@ -66,7 +68,7 @@ describe("IdentityMetadata", () => {
expect(result).toBeSuccessful();

const getResult = await consumptionServices.identityMetadata.getIdentityMetadata({ reference: reference });
expect(getResult).toBeAnError("", "");
expect(getResult).toBeAnError("IdentityMetadata not found. Make sure the ID exists and the record is not expired.", "error.runtime.recordNotFound");
});
});

Expand Down

0 comments on commit 5b75124

Please sign in to comment.