File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/test/groovy/nextflow/lsp/services/script Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,18 @@ class ScriptDefinitionTest extends Specification {
70
70
when :
71
71
open(service, moduleUri, ''' \
72
72
workflow HELLO {
73
+ take:
74
+ target
75
+
76
+ main:
77
+ println "Hello, ${target}!"
73
78
}
74
79
''' )
75
80
open(service, mainUri, ''' \
76
81
include { HELLO } from './module.nf'
77
82
78
83
workflow {
79
- HELLO()
84
+ HELLO('World' )
80
85
}
81
86
''' )
82
87
awaitUpdate()
@@ -85,7 +90,7 @@ class ScriptDefinitionTest extends Specification {
85
90
location != null
86
91
location. getUri() == moduleUri
87
92
location. getRange(). getStart() == new Position (0 , 0 )
88
- location. getRange(). getEnd() == new Position (1 , 1 )
93
+ location. getRange(). getEnd() == new Position (6 , 1 )
89
94
}
90
95
91
96
}
You can’t perform that action at this time.
0 commit comments