diff --git a/lib/cli/test.js b/lib/cli/test.js
index <HASH>..<HASH> 100644
--- a/lib/cli/test.js
+++ b/lib/cli/test.js
@@ -83,6 +83,9 @@ module.exports = function test(options, callback) {
   }
 
   function normalizeWhitespace(str) {
-    return str.replace(/\s+/g, " ").trim()
+    return str
+      .replace(/\s+/g, " ")
+      .replace(/ \)/g, ')')
+      .trim()
   }
 };
Ignore whitespace between closing parens in tests

Fixes tree-sitter/tree-sitter#<I>