-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update test and handle diff status for legacy git
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ describe('Git-VCS', () => { | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
|
||
|
@@ -109,6 +110,7 @@ describe('Git-VCS', () => { | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
expect(await GitVCS.log()).toEqual([]); | ||
|
@@ -126,6 +128,7 @@ describe('Git-VCS', () => { | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
|
||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
|
@@ -212,6 +215,7 @@ First commit! | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
const status = await GitVCS.status(); | ||
|
@@ -260,6 +264,7 @@ First commit! | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
// Commit | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
|
@@ -318,6 +323,7 @@ First commit! | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
// Write to all files | ||
await Promise.all(files.map(f => fsClient.promises.writeFile(f, originalContent))); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters