From 0e05d3dccd095fd6afa6caa5f88d3ebdbb09373e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 27 Apr 2016 13:37:45 -0700 Subject: [PATCH] test: move assert to improve clarity A test is run, and then the relevant assertion is put after a different test. Place the assertion near the relevant thing it is testing for clarity. --- test/parallel/test-assert.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index cf5b7d4c9933f6..3d618741044343 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -394,12 +394,13 @@ try { } catch (e) { gotError = true; } +assert.ok(gotError); + // GH-7178. Ensure reflexivity of deepEqual with `arguments` objects. var args = (function() { return arguments; })(); a.throws(makeBlock(a.deepEqual, [], args)); a.throws(makeBlock(a.deepEqual, args, [])); -assert.ok(gotError); var circular = {y: 1};