0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/internet
cjihrig 7dd82dd1c3 test: add common.mustNotCall()
This commit adds a mustNotCall() helper for testing. This provides
an alternative to using common.fail() as a callback, or creating
a callback function for the sole purpose of calling common.fail().

PR-URL: https://github.com/nodejs/node/pull/11152
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
2017-02-06 14:07:55 -05:00
..
test-dgram-broadcast-multi-process.js test: increase usage of assert.ifError() 2017-01-02 09:48:52 -05:00
test-dgram-multicast-multi-process.js test: use eslint to fix var->const/let 2017-01-11 11:43:52 +00:00
test-dgram-send-cb-quelches-error.js test: use eslint to fix var->const/let 2017-01-11 11:43:52 +00:00
test-dns-cares-domains.js test: use eslint to fix var->const/let 2017-01-11 11:43:52 +00:00
test-dns-ipv4.js benchmark,lib,test: adjust for linting 2017-01-06 14:36:01 -08:00
test-dns-ipv6.js benchmark,lib,test: adjust for linting 2017-01-06 14:36:01 -08:00
test-dns-txt-sigsegv.js test: s/assert.equal/assert.strictEqual/ 2017-01-11 14:19:26 +00:00
test-dns.js test: add common.mustNotCall() 2017-02-06 14:07:55 -05:00
test-http-dns-fail.js test: add common.mustNotCall() 2017-02-06 14:07:55 -05:00
test-http-https-default-ports.js test: use const for all require() calls 2017-01-02 18:28:18 -05:00
test-net-connect-timeout.js test: add common.mustNotCall() 2017-02-06 14:07:55 -05:00
test-net-connect-unref.js test: add common.mustNotCall() 2017-02-06 14:07:55 -05:00
test-tls-add-ca-cert.js test: use common.fail() instead of assert(false) 2017-01-23 09:45:58 -05:00
test-tls-connnect-melissadata.js test: use eslint to fix var->const/let 2017-01-11 11:43:52 +00:00
test-tls-reuse-host-from-socket.js
testcfg.py