Commit Graph
15291 Commits
Author SHA1 Message Date
fmizzell ced89ede03 test: refactor test-cluster-worker-events
Use assert.strictEqual() instead of assert.equal()

PR-URL: https://github.com/nodejs/node/pull/9994
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:33 +01:00
makenova aea0d47b77 test: update repl tests
change var to const or let
change assert.equal to assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/9991
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:32 +01:00
Nigel Kibodeaux a749604e11 test: modernize test-fs-truncate-fd
- changed `var` to `const` where variables were not reassigned.
- changed `assert.equal` to `assert.strictEqual` because there was no
downside to being more rigorous.

PR-URL: https://github.com/nodejs/node/pull/9978
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:31 +01:00
rgoodwin 1addb3ba53 test: update tls test to use const/let and common.mustCall
* Replace variable defs using var with more up to date const/let.
* Updated tests to use strict equality to ensure type and value
  comparision
* wrap callback functions in common.mustCall to ensure single execution

PR-URL: https://github.com/nodejs/node/pull/9968
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:31 +01:00
Eric Gonzalez 6d79c0cd2c test: adding strictEqual to test-buffer-indexof.js
PR-URL: https://github.com/nodejs/node/pull/9955
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:30 +01:00
CodeTheInternet eeab546fb6 test: strictEqual in test-beforeexit-event.js
PR-URL: https://github.com/nodejs/node/pull/10004
Reviewed-by: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-08 03:03:29 +01:00
Dan Villa b71d3fd748 test: refactor test-child-process-double-pipe
Update test to use strictEqual instead of equal to remove error.

PR-URL: https://github.com/nodejs/node/pull/9930
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:29 +01:00
Ethan Arrowood 47c925a4ac test: updated tls-getcipher test
Changed var to ES6 syntax const/let.
Added common.mustCall function wrapper to all functions
called exactly once.
Changed assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9923
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:28 +01:00
Adrian Estrada bc3b77f525 test: replace equal with strictEqual in test-freelist.js
Improving asserts in test-freelist.js

PR-URL: https://github.com/nodejs/node/pull/9910
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:27 +01:00
Raja Panidepu 5afcf3ac78 test: updated test-stream-pipe-unpipe-stream
test readableStream.unpipe(dest) is no operation when dest is
not a destination for readable stream.

PR-URL: https://github.com/nodejs/node/pull/10100
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2016-12-08 03:03:27 +01:00
michael6 3aa51ecb6f test: refactor test-crypto-ecb
* var -> const/let
* IIFE to blocks

PR-URL: https://github.com/nodejs/node/pull/10029
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-08 03:03:26 +01:00
Oscar Martinez af5c4a9958 test: refactor test-require-exceptions
Updated regex for error assertion.

PR-URL: https://github.com/nodejs/node/pull/9882
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:26 +01:00
Matt Crummey 26d61c3dbc test: refactor test-console
assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9873
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:25 +01:00
Josh Mays 5ba08d9473 test: refactor test-crypto-certificate
assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9911
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-08 03:03:24 +01:00
Konstantin Likhter 81def1857d test: refactor dgram-send-multi-buffer-copy
assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9909
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-08 03:03:24 +01:00
Johnny Reading 6fc75ba498 test: refactor test-domain
Use assert.strictEqual() instead of assert.equal().

PR-URL: https://github.com/nodejs/node/pull/9890
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:23 +01:00
Exlipse7 b343a584e6 test: refactor test-cli-syntax
Switch assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/10057
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-08 03:03:22 +01:00
k3kathy 76dda9ca37 test: refactor test-child-process-constructor
Change all assert.equal() to use assert.strictEqual().

PR-URL: https://github.com/nodejs/node/pull/10060
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2016-12-08 03:03:22 +01:00
Cesar Hernandez f78b81750d test: refactor test-repl-mode.js
* var -> const/let
* assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/10061
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2016-12-08 03:03:21 +01:00
Sean Villars 2127798eaa test: var to const, assert.equal to assert.strictEqual in net
* var -> const
* assert.equal -> assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/9907
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:20 +01:00
anoff cf9f6f8dbf test: changed vars to const in test-net-better-error-messages-listen-path.js
* `var` to `const`
* use `assert.strictEqual`

PR-URL: https://github.com/nodejs/node/pull/9905
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:20 +01:00
Sarah Meyer e9d4665b29 test: use const instead of var in test-require-json.js
PR-URL: https://github.com/nodejs/node/pull/9904
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:19 +01:00
Outsider f4b6b9faa7 test: refactor test-http-dns-error
Replace var with const and use strictEqual().

PR-URL: https://github.com/nodejs/node/pull/10062
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-08 03:03:18 +01:00
Daniel Pittman 7a228fe4ae test: Changed assert.equal to assert.strictEqual
Updated test-cluster-send-deadlock.js to change
assert.equal to assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/9902
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:18 +01:00
Jay Brownlee 7c4b59f9b1 test: refactor test-vm-syntax-error-stderr.js
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: https://github.com/nodejs/node/pull/9900
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:17 +01:00
Chris Bystrek 5d28864d7f test: refactor test-tls-destroy-whilst-write
Update var to let/const and replace arbitrary timeout.

PR-URL: https://github.com/nodejs/node/pull/10064
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2016-12-08 03:03:16 +01:00
Kent.Fan 1c3227fd8c test: refactor test-net-dns-custom-lookup
Use asssert.strictEqual to disallow coersion.

PR-URL: https://github.com/nodejs/node/pull/10071
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:15 +01:00
davidmarkclements 9b7d7487ef test: refactor test-https-truncate
Changes assert.equal to assert.strictEqual to ensure specificity.

Changes var declarations to const/let where appropriate.

PR-URL: https://github.com/nodejs/node/pull/10074
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-08 03:03:15 +01:00
Hutson Betts d698f9d0ac test: refactor test-tls-server-verify
Refactored `test-tls-server-verify.js` to replace uses of `var` with
`const` and `let`. Also replaced uses of `assert.equal` with
`assert.strictEqual`.

PR-URL: https://github.com/nodejs/node/pull/10076
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2016-12-08 03:03:14 +01:00
Richard Karmazin 7277c376c2 test: use strictEqual in test-cli-eval-event.js
PR-URL: https://github.com/nodejs/node/pull/9964
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-08 03:03:13 +01:00
Konstantin Likhter 404306fd0e test: refactor test-crypto-padding.js
- Replaced var with const and let.
- Replaced assert.equal() with assert.strictEqual().
- Added error message checking for assert.throws().

PR-URL: https://github.com/nodejs/node/pull/9971
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-08 03:03:13 +01:00
Adrian Estrada 821518d4e4 test: refactor test-tls-friendly-error-message.js
Replaces var with const and adds common.mustCall().

PR-URL: https://github.com/nodejs/node/pull/9967
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-08 03:03:12 +01:00
adelmann 55269c106b test: refactor test-fs-append-file.js
- Replaced var with either const or let.
- Replaced assert.equal() with assert.strictEqual().
- Replaced all error checks with assert.ifError(e).

PR-URL: https://github.com/nodejs/node/pull/10110
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-08 03:03:11 +01:00
davidmarkclements bffbf6881a test: assert.equal -> assert.strictEqual
changes assert.equal to assert.strictEqual to ensure specificity

PR-URL: https://github.com/nodejs/node/pull/10065
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-08 03:03:11 +01:00
Cesar Hernandez f10c3210a1 test: refactor test-dgram-exclusive-implicit-bind
* assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/10066
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-08 03:03:10 +01:00
davidmarkclements 67b11a429b test: assert.equal -> assert.strictEqual
changes assert.equal to assert.strictEqual to ensure specificity

PR-URL: https://github.com/nodejs/node/pull/10067
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-08 03:03:09 +01:00
Julian Duque bb950a6997 test: improve test for crypto padding
Replace assert.equal with assert.strictEqual and use RegExp in
assert.throws

PR-URL: https://github.com/nodejs/node/pull/9906
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-08 03:03:09 +01:00
Hitesh Kanwathirtha 7bf13f3834 test: polish test-net-better-error-messages-listen
Cleans up test-net-better-error-messages-list.js with following:
- var -> const
- assert.equal -> assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/10087
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2016-12-08 03:03:08 +01:00
bjdelro 776cfc5898 test: change var to const in test-tls-key-mismatch.js
PR-URL: https://github.com/nodejs/node/pull/9897
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:07 +01:00
JDHarmon f3ef0d9c1b test: use strictEqual in cwd-enoent
Changed all references from assert.Equal() to assert.strictEqual().

PR-URL: https://github.com/nodejs/node/pull/10077
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-08 03:03:06 +01:00
Jonathan Darling 5377f72b5a test: refactor test-fs-read-stream-inherit.js
* convert assert.equal to assert.strictEqual
* convert var to const/let

PR-URL: https://github.com/nodejs/node/pull/9894
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:06 +01:00
Wes Tyler a11f9ab82e test: refactor test-child-process-stdio-inherit
assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9893
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:05 +01:00
Harish Tejwani 80e3aabedd test: change var to const for require and strict equality checks
PR-URL: https://github.com/nodejs/node/pull/9892
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:04 +01:00
Daniel Flores 8097b3b1ec test: Update to const and use regex for assertions
Use const over var.

Assert error message with regex.

PR-URL: https://github.com/nodejs/node/pull/9891
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:04 +01:00
Peter Masucci 6d5b21517a test: swap var->const/let and equal->strictEqual
Change instances of var with const/let.
Change assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9888
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:03 +01:00
Julian Duque 5446b3c6a0 test: replace equal with strictEqual in crypto
Replace assert.equal with assert.strictEqual in
crypto cipher-decipher test

PR-URL: https://github.com/nodejs/node/pull/9886
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:02 +01:00
Julian Duque 0c66f68fe2 test: replace equal with strictEqual
Replace assert.equal with assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/9879
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:02 +01:00
rajatk c5bfe90900 test: var to const/let in test-tls-set-ciphers
this change is part of code and learn (NINA-2016)

PR-URL: https://github.com/nodejs/node/pull/9877
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:01 +01:00
Devon Rifkin 7fa3b6fad3 test: refactor test-tls-timeout-server-2
* Use `common.mustCall` for all callbacks
* Use `const` instead of `var`

PR-URL: https://github.com/nodejs/node/pull/9876
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:00 +01:00
Matt Webb e6747048e7 test: Updating vars to const and tsl server test
PR-URL: https://github.com/nodejs/node/pull/9874
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-08 03:03:00 +01:00