From 2e4ec577e8c12519bdae3f04c9a660312c32c70f Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 8 Sep 2024 18:04:22 +0300 Subject: [PATCH] enhancement: #500 Revert dev changes --- runProcesses.js | 32 -------------------------------- src/scrollspy.ts | 2 +- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 runProcesses.js diff --git a/runProcesses.js b/runProcesses.js deleted file mode 100644 index 138dc29182..0000000000 --- a/runProcesses.js +++ /dev/null @@ -1,32 +0,0 @@ -const { exec } = require('child_process'); - -const runProcess = (command) => { - return new Promise((resolve) => { - exec(command, (error, stdout, stderr) => { - resolve({ - command, - returnCode: error ? error.code : 0, - output: stdout || stderr - }); - }); - }); -}; - -const runProcesses = async (command, numberOrProcesses) => { - const results = []; - - const promises = []; - for (let i = 0; i < numberOrProcesses; i++) { - const promise = runProcess(command); - promises.push(promise); - } - const processResults = await Promise.all(promises); - - processResults.forEach((result) => results.push(result)); - - const resultsWithNonZeroReturnCode = results.filter((value) => value.returnCode !== 0); - - console.log(resultsWithNonZeroReturnCode); -}; - -runProcesses('npm run originalTest', 20); diff --git a/src/scrollspy.ts b/src/scrollspy.ts index e490885159..337a82dae2 100644 --- a/src/scrollspy.ts +++ b/src/scrollspy.ts @@ -27,7 +27,7 @@ export interface ScrollSpyOptions extends BaseOptions { * scrollbar goes outside of scrollspy elements. * * If there is no last top element, - * then the active one will be first element. + * then the active one will be the first element. * * @default false */