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

Adjust code documentation #3590

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/development/forked-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ id: forked-pr

* Fork the Cumulus repo
* Create a new branch from the branch you'd like to contribute to
* If an issue does't already exist, submit one (see above)
* If an issue doesn't already exist, submit one (see above)

## Create a Pull Request

Expand Down
3 changes: 3 additions & 0 deletions packages/common/src/sleep.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/**
* Sleep for the given number of milliseconds
*
* @param {number} duration - The number of milliseconds to sleep.
* @returns {Promise} A `Promise` that resolves after the given duration.
*/
export const sleep = (duration: number): Promise<void> =>
new Promise((resolve) => setTimeout(resolve, duration));
1 change: 1 addition & 0 deletions packages/common/src/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const inTestMode = (env: NodeJS.ProcessEnv = process.env): boolean =>

/**
* Helper function to throw error for unit test exports
*
* @throws {Error}
*/
export const throwTestError = () => {
Expand Down