From 5ee37f14842852931cb987e86d63ffb679abd036 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 19 Oct 2021 09:52:57 -0500 Subject: update dev dependencies and react to new linting rules (#611) --- __test__/ref-helper.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '__test__/ref-helper.test.ts') diff --git a/__test__/ref-helper.test.ts b/__test__/ref-helper.test.ts index 9911eff..0801532 100644 --- a/__test__/ref-helper.test.ts +++ b/__test__/ref-helper.test.ts @@ -16,7 +16,7 @@ describe('ref-helper tests', () => { await refHelper.getCheckoutInfo(git, 'refs/heads/my/branch', commit) throw new Error('Should not reach here') } catch (err) { - expect(err.message).toBe('Arg git cannot be empty') + expect((err as any)?.message).toBe('Arg git cannot be empty') } }) @@ -25,7 +25,9 @@ describe('ref-helper tests', () => { await refHelper.getCheckoutInfo(git, '', '') throw new Error('Should not reach here') } catch (err) { - expect(err.message).toBe('Args ref and commit cannot both be empty') + expect((err as any)?.message).toBe( + 'Args ref and commit cannot both be empty' + ) } }) @@ -102,7 +104,7 @@ describe('ref-helper tests', () => { await refHelper.getCheckoutInfo(git, 'my-ref', '') throw new Error('Should not reach here') } catch (err) { - expect(err.message).toBe( + expect((err as any)?.message).toBe( "A branch or tag with the name 'my-ref' could not be found" ) } -- cgit v1.2.3