test: use conventional argument order in assertion

PR-URL: https://github.com/nodejs/node/pull/40591
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Tobias Nießen authored and Michaël Zasso committed 2021-11-06 10:57:06 +01:00
1 parent 18296c3d8e
commit cf6ded4db5
1 file changed
+1 -1
+1 -1
View File
@@ -315,7 +315,7 @@ Buffer.alloc(8, '');
buf.fill('h');
for (let i = 0; i < buf.length; i++)
assert.strictEqual('h'.charCodeAt(0), buf[i]);
assert.strictEqual(buf[i], 'h'.charCodeAt(0));
buf.fill(0);
for (let i = 0; i < buf.length; i++)