Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
silvicir committed May 16, 2024
1 parent a5207ee commit 6b903d8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/io-sign-backoffice-app/src/lib/__test__/issuers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

const mocks: { issuer: Issuer } = vi.hoisted(() => ({
issuer: {
id: "103920",
id: "8a6031b8-ca40-4ac1-86b6-c3bda65803d7",
externalId: "01GG4NFBCN4ZH8ETCCKX3766KX",
institutionId: "8a6031b8-ca40-4ac1-86b6-c3bda65803d7",
type: "PA",
Expand Down Expand Up @@ -67,11 +67,8 @@ describe("createIssuerIfNotExists", () => {

describe("getIssuer", () => {
it("should return issuer", async () => {
expect(
getIssuerByInstitution({
id: mocks.issuer.institutionId,
taxCode: mocks.issuer.id,
})
await expect(
getIssuerByInstitution(mocks.issuer.institutionId)
).resolves.toEqual(mocks.issuer);
});
});
Expand Down

0 comments on commit 6b903d8

Please sign in to comment.