From c8c715feb48126359dc0fb4a067ab2f8803287af Mon Sep 17 00:00:00 2001 From: marsonya Date: Mon, 2 Nov 2020 19:56:52 +0530 Subject: [PATCH] Doctest Contribution Guidelines | Guidelines for running doctests --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 87bbc792f..2bd176ee8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,6 +98,11 @@ It is advised that you add the Doctests in a multiline comment just after the Al */ For Code Structure reference see [this file](https://github.com/TheAlgorithms/Javascript/blob/master/Sorts/BubbleSort.js). +You can run the doctest by using the command +``` +$ doctest MyFile.js // if that fails, try: npx doctest MyFile.js +``` + - Most importantly, - **Be consistent in the use of these guidelines when submitting.**