Skip to content

Commit 9b056ea

Browse files
committed
update test
1 parent 64abcac commit 9b056ea

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/test/groovy/nextflow/lsp/services/config/ConfigHoverTest.groovy

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,22 @@ class ConfigHoverTest extends Specification {
4141
given:
4242
def service = getConfigService()
4343
def uri = getUri('nextflow.config')
44-
def value
4544

4645
when:
4746
open(service, uri, '''\
4847
executor {
4948
}
5049
''')
5150
service.updateNow()
52-
value = getHoverHint(service, uri, new Position(1, 0))
51+
def value = getHoverHint(service, uri, new Position(1, 0))
5352
then:
5453
value == 'The `executor` scope controls various executor behaviors.\n'
54+
}
55+
56+
def 'should get hover hint for a plugin config scope' () {
57+
given:
58+
def service = getConfigService()
59+
def uri = getUri('nextflow.config')
5560

5661
when:
5762
open(service, uri, '''\
@@ -63,7 +68,7 @@ class ConfigHoverTest extends Specification {
6368
}
6469
''')
6570
service.updateNow()
66-
value = getHoverHint(service, uri, new Position(4, 0))
71+
def value = getHoverHint(service, uri, new Position(4, 0))
6772
then:
6873
value == 'The `prov` scope allows you to configure the `nf-prov` plugin.\n'
6974
}

0 commit comments

Comments
 (0)