Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavoyan committed Jun 20, 2024
1 parent 2d0f541 commit 16e9aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sdk/test/usecases/GenerateOffersUseCase.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import GenerateOffersRepositoryImpl from "../../src/impl/data/repositories/Gener
import GenerateOffersUseCaseImpl from "../../src/impl/data/usecases/GenerateOffersUseCaseImpl";
import NetworkServiceSuccess from "../NetworkServiceSuccess";
import { GenerateOffersMocks } from "../infrastructure/resources/valid/GenerateOffersMocks";
import { VCLCredentialManifest, VCLGenerateOffersDescriptor, VCLVerifiedProfile } from "../../src";
import { VCLCredentialManifest, VCLGenerateOffersDescriptor, VCLOffers, VCLVerifiedProfile } from "../../src";
import { VerifiedProfileMocks } from "../infrastructure/resources/valid/VerifiedProfileMocks";
import { DidJwkMocks } from "../infrastructure/resources/valid/DidJwkMocks";
import { CommonMocks } from "../infrastructure/resources/CommonMocks";
Expand Down Expand Up @@ -69,7 +69,7 @@ describe("GenerateOffersUseCase Tests", () => {

const generatedOffers = await subject1.generateOffers(generateOffersDescriptor, CommonMocks.Token);

expect(generatedOffers?.payload).toStrictEqual(GenerateOffersMocks.GeneratedOffersJsonArr);
expect(generatedOffers?.payload[VCLOffers.CodingKeys.KeyOffers]).toStrictEqual(GenerateOffersMocks.GeneratedOffersJsonArr);
expect(generatedOffers?.all[0]).toStrictEqual(expectedOffer1);
expect(generatedOffers?.all[1]).toStrictEqual(expectedOffer2);
expect(generatedOffers?.challenge).toBeNull()
Expand Down Expand Up @@ -126,7 +126,7 @@ describe("GenerateOffersUseCase Tests", () => {

const generatedOffers = await subject3.generateOffers(generateOffersDescriptor, CommonMocks.Token);

expect(generatedOffers?.payload).toStrictEqual([]);
expect(generatedOffers?.payload[VCLOffers.CodingKeys.KeyOffers]).toStrictEqual([]);
expect(generatedOffers?.all).toStrictEqual([]);
expect(generatedOffers?.challenge).toBeNull();
expect(generatedOffers?.sessionToken).toStrictEqual(CommonMocks.Token);
Expand Down

0 comments on commit 16e9aab

Please sign in to comment.