Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/__test__/git-auth-helper.test.ts
diff options
context:
space:
mode:
authorTatyana Kostromskaya <takost@github.com>2023-10-05 13:10:00 +0200
committerTatyana Kostromskaya <takost@github.com>2023-10-05 13:10:00 +0200
commit6e020c8cc7b0df394197c68256fddb081d632d8f (patch)
treefaf473ae57c57aaf3f351362a5c85b398d9b5b6f /__test__/git-auth-helper.test.ts
parent991687ddcca4019bc521e29e408b1fa93e7b3492 (diff)
.
Diffstat (limited to '__test__/git-auth-helper.test.ts')
-rw-r--r--__test__/git-auth-helper.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/__test__/git-auth-helper.test.ts b/__test__/git-auth-helper.test.ts
index 411faed..4872a1c 100644
--- a/__test__/git-auth-helper.test.ts
+++ b/__test__/git-auth-helper.test.ts
@@ -169,8 +169,9 @@ describe('git-auth-helper tests', () => {
// Mock fs.promises.readFile
const realReadFile = fs.promises.readFile
- jest.spyOn(fs.promises, 'readFile').mockImplementation(
- async (file: any, options: any): Promise<Buffer> => {
+ jest
+ .spyOn(fs.promises, 'readFile')
+ .mockImplementation(async (file: any, options: any): Promise<Buffer> => {
const userKnownHostsPath = path.join(
os.homedir(),
'.ssh',
@@ -181,8 +182,7 @@ describe('git-auth-helper tests', () => {
}
return await realReadFile(file, options)
- }
- )
+ })
// Act
const authHelper = gitAuthHelper.createAuthHelper(git, settings)