mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Some cleanup
This commit is contained in:
parent
cab3a0aba3
commit
e03bceba88
6 changed files with 8 additions and 37 deletions
|
|
@ -11,20 +11,4 @@ test("createUvPackageManager", async (t) => {
|
|||
assert.strictEqual(typeof pm.isSupportedCommand, "function");
|
||||
assert.strictEqual(typeof pm.getDependencyUpdatesForCommand, "function");
|
||||
});
|
||||
|
||||
await t.test("should use proxy-only approach (MITM)", () => {
|
||||
const pm = createUvPackageManager();
|
||||
|
||||
// uv uses proxy-only approach, so it doesn't scan args
|
||||
assert.strictEqual(pm.isSupportedCommand(["pip", "install", "requests"]), false);
|
||||
assert.strictEqual(pm.isSupportedCommand(["add", "requests"]), false);
|
||||
assert.strictEqual(pm.isSupportedCommand([]), false);
|
||||
});
|
||||
|
||||
await t.test("should return empty dependency updates", () => {
|
||||
const pm = createUvPackageManager();
|
||||
|
||||
const result = pm.getDependencyUpdatesForCommand(["pip", "install", "requests"]);
|
||||
assert.deepStrictEqual(result, []);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue