Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Dec 7, 2020
1 parent bb763f7 commit c5c18bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/cogrpc/service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ describe('collectCargo', () => {

expect(MOCK_RETRIEVE_ACTIVE_PARCELS).toBeCalledWith(
PEER_GATEWAY_ADDRESS,
partialPinoLogger({ peerGatewayAddress: PEER_GATEWAY_ADDRESS }),
partialPinoLogger({ peerGatewayAddress: PEER_GATEWAY_ADDRESS }) as any,
);
});

Expand Down
3 changes: 2 additions & 1 deletion src/services/crcQueueWorker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
SessionlessEnvelopedData,
SessionPublicKeyData,
} from '@relaycorp/relaynet-core';
import { Connection } from 'mongoose';
import * as stan from 'node-nats-streaming';

import { mockPino, mockSpy, PdaChain } from '../_test_utils';
Expand Down Expand Up @@ -58,7 +59,7 @@ mockSpy(jest.spyOn(NatsStreamingClient, 'initFromEnv'), () => mockNatsClient);

//region Mongoose-related fixtures

const MOCK_MONGOOSE_CONNECTION = { what: 'mongooseConnection' };
const MOCK_MONGOOSE_CONNECTION: Connection = { what: 'mongooseConnection' } as any;
mockSpy(jest.spyOn(mongo, 'createMongooseConnectionFromEnv'), () => MOCK_MONGOOSE_CONNECTION);

//region Keystore-related fixtures
Expand Down

0 comments on commit c5c18bc

Please sign in to comment.