From 3ef4c4a54263677f2a180719a8ce3e680466b741 Mon Sep 17 00:00:00 2001 From: Philippe Renzen Date: Tue, 5 Dec 2023 13:35:30 +0100 Subject: [PATCH] Fixes test --- src/utils/tests/utilities.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/tests/utilities.test.ts b/src/utils/tests/utilities.test.ts index 56f3b66..7f41d42 100644 --- a/src/utils/tests/utilities.test.ts +++ b/src/utils/tests/utilities.test.ts @@ -158,10 +158,10 @@ describe('Utilities', () => { it('should throw if configuration file & directory could not be found', () => { const nonExistentConfFile = 'fileDoesNotExist.yml' const nonExistentDirWithFile = './dirDoesNotExist/' + nonExistentConfFile - expect(() => loadPipelines(nonExistentConfFile)).to.throw(`Configuration directory/file ${chalk.italic(nonExistentConfFile)} could not be found.\nIf this is your first run of LDWorkbench, you might want to use \`npx ldworkbench --init\` to setup an example workbench project.`) - expect(() => loadPipelines(nonExistentDirWithFile)).to.throw(`Configuration directory/file ${chalk.italic(nonExistentDirWithFile)} could not be found.\nIf this is your first run of LDWorkbench, you might want to use \`npx ldworkbench --init\` to setup an example workbench project.`) + expect(() => loadPipelines(nonExistentConfFile)).to.throw(`Configuration directory/file ${chalk.italic(nonExistentConfFile)} could not be found.\nIf this is your first run of LDWorkbench, you might want to use \`npx ld-workbench --init\` to setup an example workbench project.`) + expect(() => loadPipelines(nonExistentDirWithFile)).to.throw(`Configuration directory/file ${chalk.italic(nonExistentDirWithFile)} could not be found.\nIf this is your first run of LDWorkbench, you might want to use \`npx ld-workbench --init\` to setup an example workbench project.`) }) - it.only('should throw if directory has no .yml configuration file', () => { + it('should throw if directory has no .yml configuration file', () => { const dirWithoutConfFile = './src/utils/tests/static/dirWithoutYmlFile' expect(() => loadPipelines(dirWithoutConfFile)).to.throw(`No configuration files found matching pattern ${chalk.italic(`${dirWithoutConfFile}/**/*.yml`)}`) })