minor fixes, 1 test for session manager
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { Result, ResultError, ResultSuccess, ShellError } from "@core/result";
|
||||
import type { Result, ResultError, ResultSuccess } from "@core/result";
|
||||
import type { ShellError } from "@core/util/errors";
|
||||
import { createImmutableBuffer, type ImmutableBuffer } from "@core/util/immutable_buffer";
|
||||
import { expect, test } from "vitest";
|
||||
|
||||
@@ -36,13 +37,13 @@ test("error result passed through getstdout should throw error with 'Goodbye, Wo
|
||||
|
||||
const result: ResultError<TestError> = {
|
||||
type: "error",
|
||||
exitCode: 1,
|
||||
stdout: createImmutableBuffer(new Uint8Array()),
|
||||
stderr: createImmutableBuffer(new Uint8Array()),
|
||||
error: {
|
||||
errorType: "TestError",
|
||||
message,
|
||||
timestamp: 0,
|
||||
exitCode: 1,
|
||||
},
|
||||
};
|
||||
expect(() => getStdout(result)).toThrow(message);
|
||||
|
||||
Reference in New Issue
Block a user