From 60ace9c65a5e5d268cabca984d369a3009ff641e Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Fri, 21 Feb 2020 13:37:44 -0700 Subject: [PATCH] Remove unnecessary check --- tests/browsertests/common.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/browsertests/common.nim b/tests/browsertests/common.nim index e266ed6..d906675 100644 --- a/tests/browsertests/common.nim +++ b/tests/browsertests/common.nim @@ -19,7 +19,7 @@ macro with*(obj: typed, code: untyped): untyped = # Simply inject obj into call for i in 0 ..< result.len: - if result[i].kind in {nnkCommand, nnkCall} and $result[i][0].toStrLit != "assert": + if result[i].kind in {nnkCommand, nnkCall}: result[i].insert(1, obj) result = getAst(checkCompiles(result, code))