mirror of https://github.com/actions/setup-go.git
Fix EOL
This commit is contained in:
parent
a707d84385
commit
d706c92bdb
|
@ -562,7 +562,7 @@ describe('setup-go', () => {
|
||||||
describe('go-version-from-file', () => {
|
describe('go-version-from-file', () => {
|
||||||
it('reads version from file', async () => {
|
it('reads version from file', async () => {
|
||||||
inputs['go-version-from-file'] = '.go-version';
|
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();
|
await main.run();
|
||||||
|
|
||||||
|
@ -575,7 +575,7 @@ describe('setup-go', () => {
|
||||||
inputs['go-version'] = '1.13.1';
|
inputs['go-version'] = '1.13.1';
|
||||||
|
|
||||||
inputs['go-version-from-file'] = '.go-version';
|
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();
|
await main.run();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue