mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add a more descriptive comment for the cygwin test
This commit is contained in:
parent
32ba9d71b5
commit
ca8bc31311
1 changed files with 5 additions and 2 deletions
|
|
@ -115,10 +115,13 @@ describe("Bash shell integration", () => {
|
|||
});
|
||||
|
||||
it("should use the correct startup file for cygwin bash on Windows", () => {
|
||||
// Simulate Windows platform with Cygwin bash
|
||||
// The mockStartupFile contains a path we cannot open, so we set it to something useless
|
||||
// The cygpath -w command that is mocked, will return the windowsCygwinPath variable
|
||||
// This simulates the conversion from /c/Users/... to C:\Users\...
|
||||
platform = "win32";
|
||||
// set windows path to the correct filename
|
||||
windowsCygwinPath = mockStartupFile;
|
||||
mockStartupFile = "DUMMY"; // This will be overridden by the mocked execSync
|
||||
mockStartupFile = "DUMMY";
|
||||
|
||||
const result = bash.setup();
|
||||
assert.strictEqual(result, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue