implemented the cd command - not tested properly
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { descriptor as echo } from "@core/commands/echo";
|
||||
import type { ResultSuccess } from "@core/result";
|
||||
import { createInitialShellState, type ShellState } from "@core/shell_state";
|
||||
import type { UserInfo } from "@core/user_info";
|
||||
import { buildTestFS, type FixtureNode } from "@tests/helpers/filesystems_fixture";
|
||||
@@ -58,6 +59,6 @@ test("returns a Result of type success", () => {
|
||||
const string = new TextDecoder().decode(output.result.stdout.toArray());
|
||||
|
||||
expect(output.result.type).toBe("success");
|
||||
expect(output.result.exitCode).toBe(0);
|
||||
expect((output.result as ResultSuccess).exitCode).toBe(0);
|
||||
expect(string).toBe("hello world");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user