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))