mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Refactor git credentials to be an array instead of an object
This commit is contained in:
12 files changed
+598
-220
No files matched your search
+4
-4
@@ -305,7 +305,7 @@ describe('Git', () => {
|
||||
it('uses shakespeare.diy as default author when no Git identity is configured', async () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
credentials: [],
|
||||
coAuthorEnabled: true,
|
||||
});
|
||||
|
||||
@@ -332,7 +332,7 @@ describe('Git', () => {
|
||||
it('uses custom identity when both name and email are configured', async () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
credentials: [],
|
||||
name: 'John Doe',
|
||||
email: '[email protected]',
|
||||
coAuthorEnabled: true,
|
||||
@@ -361,7 +361,7 @@ describe('Git', () => {
|
||||
it('does not add co-author when coAuthorEnabled is false', async () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
credentials: [],
|
||||
name: 'John Doe',
|
||||
email: '[email protected]',
|
||||
coAuthorEnabled: false,
|
||||
@@ -390,7 +390,7 @@ describe('Git', () => {
|
||||
it('respects provided author when explicitly passed', async () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
credentials: [],
|
||||
name: 'John Doe',
|
||||
email: '[email protected]',
|
||||
coAuthorEnabled: true,
|
||||
|
||||
Reference in new issue
Block a user