mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix tests
This commit is contained in:
parent
ceefaabe57
commit
1b32be6c58
2 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ const mockMitmConnect = mock.fn();
|
|||
const mockTunnelRequest = mock.fn();
|
||||
const mockUi = { writeVerbose: mock.fn() };
|
||||
const mockGetCaCertPath = mock.fn(() => "/fake/cert/path");
|
||||
const mockGetHasSuppressedVersions = mock.fn(() => false);
|
||||
const mockModifyResponseEventEmitter = new EventEmitter();
|
||||
|
||||
/** @type {import("./interceptors/interceptorBuilder.js").Interceptor | undefined} */
|
||||
let mockInterceptor;
|
||||
|
|
@ -30,7 +30,7 @@ mock.module("./interceptors/createInterceptorForEcoSystem.js", {
|
|||
},
|
||||
});
|
||||
mock.module("./interceptors/npm/modifyNpmInfo.js", {
|
||||
namedExports: { getHasSuppressedVersions: mockGetHasSuppressedVersions },
|
||||
namedExports: { modifyResponseEventEmitter: mockModifyResponseEventEmitter },
|
||||
});
|
||||
mock.module("./certUtils.js", {
|
||||
namedExports: { getCaCertPath: mockGetCaCertPath },
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { EventEmitter } from "stream";
|
||||
import { EventEmitter } from "events";
|
||||
import {
|
||||
getMinimumPackageAgeHours,
|
||||
getNpmMinimumPackageAgeExclusions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue