Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test coverage #1085

Merged
merged 10 commits into from
Dec 4, 2024
Prev Previous commit
Next Next commit
fix(util): add await into async function
  • Loading branch information
manushak committed Dec 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 06a0bfed82182a9f08f5fa34fbe7bfb9f0d37703
2 changes: 1 addition & 1 deletion src/common/util/yaml.ts
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ export const saveYamlFileAs = async (object: any, pathToFile: string) => {
await fs.mkdir(dirPath, {recursive: true});
const yamlString = YAML.dump(object, {noRefs: true});

return fs.writeFile(pathToFile, yamlString);
return await fs.writeFile(pathToFile, yamlString);
} catch (error: any) {
throw new WriteFileError(error.message);
}