Skip to content

Commit

Permalink
fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patelchandni committed May 2, 2024
1 parent 0e06524 commit 06db495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/funcignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class FuncIgnore {

const allFiles: string[] = glob.sync(`${sanitizedWorkingDir}/**/*`, { dot: true });
allFiles.forEach(name => {
const filename = name.replace(`${working_dir}\\`, '');
const filename = name.replace(`${working_dir}/`, '');
Logger.Warn(`filename ==> ${filename}`);

if (ignoreParser.ignores(filename)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/handlers/contentPreparer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('Check ContentPreparer', function () {

it('should remove unnecessary files according to .funcignore', async function() {
const preparer = new ContentPreparer();
const folderPath = `${_rootPath}\\tests\\samples\\PythonAppFuncignoreFolder`;
const folderPath = `${_rootPath}/tests/samples/PythonAppFuncignoreFolder`;
process.env.RUNNER_TEMP = `${_rootPath}/tests/temp`;

const params = Builder.GetDefaultActionParameters();
Expand Down

0 comments on commit 06db495

Please sign in to comment.