From 559266e109b13e47accfa16e5c6756043dff8d6b Mon Sep 17 00:00:00 2001 From: Usman Rashid Date: Wed, 9 Oct 2024 22:32:06 +1300 Subject: [PATCH] Fixed nf-test --- tests/hicparam/hicparam.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hicparam/hicparam.nf b/tests/hicparam/hicparam.nf index f3080271..b15416b4 100644 --- a/tests/hicparam/hicparam.nf +++ b/tests/hicparam/hicparam.nf @@ -3,7 +3,7 @@ import groovy.json.JsonSlurper def checkHiCParam(paramValue, schema) { def jsonSlurper = new JsonSlurper() def jsonContent = jsonSlurper.parse ( file ( schema, checkIfExists: true ) ) - def pattern = jsonContent.definitions.hic_options.properties.hic.pattern + def pattern = jsonContent['$defs'].hic_options.properties.hic.pattern def match = paramValue ==~ pattern return match