Last active
November 22, 2017 03:05
-
-
Save MylesBorins/9a61d37769cb812a2cc4ed0fc898bdf5 to your computer and use it in GitHub Desktop.
code-and-learn taiwan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let output = '' | |
const files = [ | |
'addons/callback-scope/test-resolve-async.js', | |
'addons/make-callback-recurse/test.js', | |
'addons-napi/test_promise/test.js', | |
'async-hooks/test-promise.chain-promise-before-init-hooks.js', | |
'async-hook/test-promise.js', | |
'async-hooks/test-promise.promise-before-init-hooks.js', | |
'known_issues/test-inspector-cluster-port-clash.js', | |
'parallel/test-async-hooks-disable-during-promise.js', | |
'parallel/test-async-hooks-enable-during-promise.js', | |
'parallel/test-async-hooks-promise-enable-disable.js', | |
'parallel/test-async-hooks-promise.js', | |
'parallel/test-async-wrap-pop-id-during-load.js', | |
'parallel/test-async-wrap-promise-after-enabled.js', | |
'parallel/test-http-agent.js', | |
'parallel/test-http2-client-promisify-connect.js', | |
'parallel/test-http2-window-size.js', | |
'parallel/test-microtask-queue-integration-domain.js', | |
'parallel/test-microtask-queue-integration.js', | |
'parallel/test-microtask-queue-run-domain.js', | |
'parallel/test-microtask-queue-run-immediate-domain.js', | |
'parallel/test-microtask-queue-run-immediate.js', | |
'parallel/test-microtask-queue-run.js', | |
'parallel/test-net-server-max-connections-close-makes-more-available.js', | |
'parallel/test-repl-load-multiline.js', | |
'parallel/test-wasm-simple.js', | |
'sequential/test-inspector-port-cluster.js', | |
'sequential/test-inspector-port-zero-cluster.js', | |
'parallel/test-util-callbackify.js', | |
'sequential/test-inspector-break-e.js' | |
]; | |
function template(filename) { | |
output += `**STOP!** | |
If you are not a first-time contributor to Node.js or if you have already opened a pull requeset with Node.js today, give this issue back and ask for a GOOD SECOND CONTRIBUTION. We will run out of good first contributions if people take more than one. | |
Thank you for your consideration! | |
Here's your first contribution to Node.js: | |
In ${filename}, add \`common.crashOnUnhandledRejection()\`. You should add it just below the main require statements and above any function declarations | |
If the test file does not contain a comment near the top explaining what the test does, please add one. See https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md for an example. | |
<hr>\n\n`; | |
} | |
files.forEach(template); | |
console.log(output); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment