Skip to content

Commit

Permalink
fix: wrong linting in tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
  • Loading branch information
elribonazo committed Dec 8, 2023
1 parent 7f2147c commit 5feba2e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/prism-agent/Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ export default class Agent
* @returns {Agent}
*/
static instanceFromConnectionManager(
apollo: Apollo,
castor: Castor,
apollo: Domain.Apollo,
castor: Domain.Castor,
pluto: Domain.Pluto,
mercury: Mercury,
mercury: Domain.Mercury,
connectionManager: ConnectionsManager,
seed?: Domain.Seed,
api?: Domain.Api
Expand Down
1 change: 0 additions & 1 deletion tests/agent/Agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
Api,
Credential,
CredentialType,
DefaultLinkSecretName,
DID,
HttpResponse,
Message,
Expand Down
5 changes: 2 additions & 3 deletions tests/agent/mocks/CastorMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import {
DID,
DIDDocument,
KeyPair,
PublicKey,
Service,
} from "../../../src/domain";
Expand Down Expand Up @@ -30,7 +29,7 @@ export const CastorMock: Castor & typeof castorVars = {
return Promise.resolve(castorVars._prismDID)
},

createPeerDID(keyPairs: KeyPair[], services: Service[]): Promise<DID> {
createPeerDID(publicKeys: PublicKey[], services: Service[]): Promise<DID> {
return Promise.resolve(castorVars._peerDID);
},

Expand All @@ -44,7 +43,7 @@ export const CastorMock: Castor & typeof castorVars = {
): Promise<boolean> {
throw new Error("Method not implemented.");
},
getEcnumbasis(did: DID, keyPair: KeyPair): string {
getEcnumbasis(did: DID, publicKey: PublicKey): string {
throw new Error("Method not implemented.");
},
};
8 changes: 4 additions & 4 deletions tests/agent/mocks/ConnectionManagerMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
ConnectionsManager as ConnectionsManagerClass,
MediatorHandler,
} from "../../../src/prism-agent/types";
import Castor from "../../../src/domain/buildingBlocks/Castor";
import Mercury from "../../../src/domain/buildingBlocks/Mercury";
import Pluto from "../../../src/domain/buildingBlocks/Pluto";
import { Castor } from "../../../src/domain/buildingBlocks/Castor";
import { Mercury } from "../../../src/domain/buildingBlocks/Mercury";
import { Pluto } from "../../../src/domain/buildingBlocks/Pluto";
import { DIDPair } from "../../../src/domain/models/DIDPair";
import { CancellableTask } from "../../../src/prism-agent/helpers/Task";
import { DID, Message } from "../../../src/domain";
Expand All @@ -16,7 +16,7 @@ export class ConnectionsManagerMock implements ConnectionsManagerClass {
mercury: Mercury;
pluto: Pluto;
mediationHandler: MediatorHandler = {
updateKeyListWithDIDs: () => {},
updateKeyListWithDIDs: () => { },
mediator: {
mediatorDID: new DID(
"did",
Expand Down
2 changes: 1 addition & 1 deletion tests/agent/mocks/MercuryMock.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { base64 } from "multiformats/bases/base64";
import { Message } from "../../../src/domain";
import Mercury from "../../../src/domain/buildingBlocks/Mercury";
import { Mercury } from "../../../src/domain/buildingBlocks/Mercury";

export class MercuryStub implements Mercury {
private throwSendMessageError?: Error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chai from "chai";
import { expect } from "chai";
import chaiAsPromised from "chai-as-promised";
import { Message } from "../../../../../src/domain";
import Mercury from "../../../../../src/domain/buildingBlocks/Mercury";
import { Mercury } from "../../../../../src/domain/buildingBlocks/Mercury";
import { AgentError } from "../../../../../src/domain/models/Errors";
import { DIDCommInvitationRunner } from "../../../../../src/prism-agent/protocols/invitation/v2/DIDCommInvitationRunner";
import { MercuryStub } from "../../../mocks/MercuryMock";
Expand Down
2 changes: 1 addition & 1 deletion tests/agent/protocols/pickup/PickupRunner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import chaiAsPromised from "chai-as-promised";

import { expect } from "chai";

import Mercury from "../../../../src/domain/buildingBlocks/Mercury";
import { Mercury } from "../../../../src/domain/buildingBlocks/Mercury";
import { MercuryStub } from "../../mocks/MercuryMock";
import {
AttachmentData,
Expand Down

0 comments on commit 5feba2e

Please sign in to comment.