Skip to content

Commit c812f6b

Browse files
committed
Improve script definition test
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 2cbf6d6 commit c812f6b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/groovy/nextflow/lsp/services/script/ScriptDefinitionTest.groovy

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,18 @@ class ScriptDefinitionTest extends Specification {
7070
when:
7171
open(service, moduleUri, '''\
7272
workflow HELLO {
73+
take:
74+
target
75+
76+
main:
77+
println "Hello, ${target}!"
7378
}
7479
''')
7580
open(service, mainUri, '''\
7681
include { HELLO } from './module.nf'
7782
7883
workflow {
79-
HELLO()
84+
HELLO('World')
8085
}
8186
''')
8287
awaitUpdate()
@@ -85,7 +90,7 @@ class ScriptDefinitionTest extends Specification {
8590
location != null
8691
location.getUri() == moduleUri
8792
location.getRange().getStart() == new Position(0, 0)
88-
location.getRange().getEnd() == new Position(1, 1)
93+
location.getRange().getEnd() == new Position(6, 1)
8994
}
9095

9196
}

0 commit comments

Comments
 (0)