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
6b1b21c670
commit
adc8ffedb6
2 changed files with 4 additions and 3 deletions
|
|
@ -42,5 +42,6 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/AikidoSec/safe-chain/issues"
|
||||
},
|
||||
"homepage": "https://github.com/AikidoSec/safe-chain#readme"
|
||||
"homepage": "https://github.com/AikidoSec/safe-chain#readme",
|
||||
"packageManager": "npm@11.4.1+sha512.fcee43884166b6f9c5d04535fb95650e9708b6948a1f797eddf40e9778646778a518dfa32651b1c62ff36f4ac42becf177ca46ca27d53f24b539190c8d91802b"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ describe("Zsh shell integration", () => {
|
|||
|
||||
fs.writeFileSync(mockStartupFile, initialContent, "utf-8");
|
||||
|
||||
const result = zsh.teardown();
|
||||
const result = zsh.teardown(knownAikidoTools);
|
||||
assert.strictEqual(result, true);
|
||||
|
||||
const content = fs.readFileSync(mockStartupFile, "utf-8");
|
||||
|
|
@ -210,7 +210,7 @@ describe("Zsh shell integration", () => {
|
|||
fs.writeFileSync(mockStartupFile, initialContent, "utf-8");
|
||||
|
||||
// Teardown should remove both aliases and source line
|
||||
zsh.teardown();
|
||||
zsh.teardown(knownAikidoTools);
|
||||
const content = fs.readFileSync(mockStartupFile, "utf-8");
|
||||
assert.ok(!content.includes("alias npm="));
|
||||
assert.ok(!content.includes("source ~/.safe-chain/scripts/init-zsh.sh"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue