Skip to content

Commit 5536149

Browse files
committed
Improve script formatting test
1 parent 6af3a98 commit 5536149

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class ScriptFormattingTest extends Specification {
3030
boolean checkFormat(ScriptService service, String uri, String before, String after) {
3131
open(service, uri, before)
3232
def textEdits = service.formatting(URI.create(uri), new FormattingOptions(4, true))
33-
return textEdits.first().getNewText() == after.stripIndent()
33+
assert textEdits.first().getNewText() == after.stripIndent()
34+
return true
3435
}
3536

3637
def 'should format a script' () {

0 commit comments

Comments
 (0)