From 706ad1e0e3f826823967b7165d7a2bc84e698cf5 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Thu, 12 Mar 2020 00:59:09 -0400 Subject: update verbiage; add comments --- __test__/git-auth-helper.test.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to '__test__/git-auth-helper.test.ts') diff --git a/__test__/git-auth-helper.test.ts b/__test__/git-auth-helper.test.ts index 67e1301..1d5c3d5 100644 --- a/__test__/git-auth-helper.test.ts +++ b/__test__/git-auth-helper.test.ts @@ -320,6 +320,8 @@ describe('git-auth-helper tests', () => { ).toString() expect(actualSshKeyContent).toBe(settings.sshKey + '\n') if (!isWindows) { + // Assert read/write for user, not group or others. + // Otherwise SSH client will error. expect((await fs.promises.stat(actualSshKeyPath)).mode & 0o777).toBe( 0o600 ) -- cgit v1.2.3