From a21a17aa11ba6bc731550aa94b7eefff470769d3 Mon Sep 17 00:00:00 2001 From: Guillaume ROUCHON Date: Wed, 1 May 2024 17:13:37 +0200 Subject: [PATCH] fix format and build --- dist/index.js | 2 ++ tests/run.test.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0fcef1b..d9c115a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -63752,8 +63752,10 @@ async function run() { switch (ifNoFilesFound) { case 'warn': core.warning('No files were found with provided sources.'); + break; case 'error': core.setFailed('No files were found with provided sources.'); + break; default: core.info('No files were found with provided sources.'); } diff --git a/tests/run.test.ts b/tests/run.test.ts index 5084d86..c6e77fe 100644 --- a/tests/run.test.ts +++ b/tests/run.test.ts @@ -668,7 +668,7 @@ describe('run', () => { } }); - replaceTokenSpy.mockResolvedValue({ defaults: 0, files: 0, replaced: 0, tokens: 0, transforms: 0 }) + replaceTokenSpy.mockResolvedValue({ defaults: 0, files: 0, replaced: 0, tokens: 0, transforms: 0 }); // act await run(); @@ -690,7 +690,7 @@ describe('run', () => { } }); - replaceTokenSpy.mockResolvedValue({ defaults: 0, files: 0, replaced: 0, tokens: 0, transforms: 0 }) + replaceTokenSpy.mockResolvedValue({ defaults: 0, files: 0, replaced: 0, tokens: 0, transforms: 0 }); // act await run(); @@ -712,7 +712,7 @@ describe('run', () => { } }); - replaceTokenSpy.mockResolvedValue({ defaults: 0, files: 0, replaced: 0, tokens: 0, transforms: 0 }) + replaceTokenSpy.mockResolvedValue({ defaults: 0, files: 0, replaced: 0, tokens: 0, transforms: 0 }); // act await run();