mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Fix "git reset" subcommand in virtual terminal
This commit is contained in:
2 files changed
+77
-19
No files matched your search
@@ -36,6 +36,9 @@ const mockGit = {
|
||||
}),
|
||||
writeRef: async () => {},
|
||||
checkout: async () => {},
|
||||
listFiles: async () => ['file1.txt', 'file2.txt', 'file3.txt'],
|
||||
currentBranch: async () => 'main',
|
||||
readBlob: async () => ({ blob: new Uint8Array([72, 101, 108, 108, 111]) }), // "Hello"
|
||||
} as unknown as Git;
|
||||
|
||||
const mockFS = {
|
||||
@@ -45,6 +48,9 @@ const mockFS = {
|
||||
}
|
||||
throw new Error('File not found');
|
||||
},
|
||||
writeFile: async () => {},
|
||||
mkdir: async () => {},
|
||||
unlink: async () => {},
|
||||
} as unknown as JSRuntimeFS;
|
||||
|
||||
const mockOptions: GitSubcommandOptions = {
|
||||
|
||||
Reference in new issue
Block a user