mirror of
https://github.com/github/codeql-action.git
synced 2026-11-04 20:20:23 +00:00
Fix new test not providing typical input
This commit is contained in:
@@ -565,8 +565,7 @@ test.serial(
|
||||
let stdoutListener: ((data: Buffer) => void) | undefined = undefined;
|
||||
const exec = sinon.stub<[], Promise<number>>().callsFake(async () => {
|
||||
if (stdoutListener !== undefined) {
|
||||
stdoutListener(Buffer.from("Xcode 27.5"));
|
||||
stdoutListener(Buffer.from("Build version 27F9"));
|
||||
stdoutListener(Buffer.from("27.5"));
|
||||
return 0;
|
||||
} else {
|
||||
throw new Error("Error to force next fallback");
|
||||
|
||||
Reference in New Issue
Block a user