From d706c92bdb4ef0f3557826f3d45751b603a0182c Mon Sep 17 00:00:00 2001 From: jojo43 Date: Sun, 5 Jul 2020 10:39:13 +0900 Subject: [PATCH] Fix EOL --- __tests__/setup-go.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/setup-go.test.ts b/__tests__/setup-go.test.ts index 3a2841d..c241364 100644 --- a/__tests__/setup-go.test.ts +++ b/__tests__/setup-go.test.ts @@ -562,7 +562,7 @@ describe('setup-go', () => { describe('go-version-from-file', () => { it('reads version from file', async () => { inputs['go-version-from-file'] = '.go-version'; - readFileSpy.mockImplementation(() => Buffer.from('1.13.0\n')); + readFileSpy.mockImplementation(() => Buffer.from(`1.13.0${osm.EOL}`)); await main.run(); @@ -575,7 +575,7 @@ describe('setup-go', () => { inputs['go-version'] = '1.13.1'; inputs['go-version-from-file'] = '.go-version'; - readFileSpy.mockImplementation(() => Buffer.from('1.13.0\n')); + readFileSpy.mockImplementation(() => Buffer.from(`1.13.0${osm.EOL}`)); await main.run();