mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Refactor git subcommands to accept a git instance
This commit is contained in:
23 files changed
+581
-413
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
||||
import { Git } from '../git';
|
||||
import { GitCommand } from './git';
|
||||
import type { JSRuntimeFS } from '../JSRuntime';
|
||||
|
||||
@@ -39,7 +40,8 @@ describe('GitCommand', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
mockFS = createMockFS();
|
||||
gitCommand = new GitCommand(mockFS);
|
||||
const git = new Git(mockFS);
|
||||
gitCommand = new GitCommand({ git, fs: mockFS, cwd: testCwd });
|
||||
});
|
||||
|
||||
it('should have correct command properties', () => {
|
||||
|
||||
Reference in new issue
Block a user