Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Renzen committed Dec 5, 2023
1 parent 184975c commit 1dc3329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/utils/tests/static/dirWithoutYmlFile/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is used for testing
4 changes: 2 additions & 2 deletions src/utils/tests/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ describe('Utilities', () => {
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.`)
})
it('should throw if directory has no .yml configuration file', () => {
const dirWithoutConfFile = './data/'
it.only('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`)}`)
})
it('should load multiple configuration files in directory', () => {
Expand Down

0 comments on commit 1dc3329

Please sign in to comment.