From 39377bc58ff32eedafb72e1e33a03b521e572276 Mon Sep 17 00:00:00 2001 From: Chris Nguyen Date: Fri, 12 Oct 2018 09:53:48 -0700 Subject: [PATCH] test: fix assertion order PR-URL: https://github.com/nodejs/node/pull/23533 Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- test/parallel/test-utf8-scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-utf8-scripts.js b/test/parallel/test-utf8-scripts.js index a67f291f8931aa..24ee6455973ed1 100644 --- a/test/parallel/test-utf8-scripts.js +++ b/test/parallel/test-utf8-scripts.js @@ -27,4 +27,4 @@ const assert = require('assert'); console.log('Σὲ γνωρίζω ἀπὸ τὴν κόψη'); -assert.strictEqual(true, /Hellö Wörld/.test('Hellö Wörld')); +assert.strictEqual(/Hellö Wörld/.test('Hellö Wörld'), true);