From 9de9c4c7990ff093d431e50abe2f8932b61dd508 Mon Sep 17 00:00:00 2001 From: afombravo Date: Sun, 19 Jan 2025 21:24:52 +0000 Subject: [PATCH] fix lack of optional input on tests --- modules/nf-core/fast2q/tests/main.nf.test | 28 ++++++++++++----------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/modules/nf-core/fast2q/tests/main.nf.test b/modules/nf-core/fast2q/tests/main.nf.test index 029d9b89574..c9d531ddd56 100644 --- a/modules/nf-core/fast2q/tests/main.nf.test +++ b/modules/nf-core/fast2q/tests/main.nf.test @@ -39,18 +39,19 @@ nextflow_process { when { - params { - module_args = '--mo EC' - } + params { + module_args = '--mo EC' + } - process { - """ - input[0] = [ - [ id:'test1', single_end:false ], // meta map - file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true) // FASTQ file - ] - """ - } + process { + """ + input[0] = [ + [ id:'test1', single_end:false ], // meta map for the first input + file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true), // First input (FASTQ file) + null // Second input is null + ] + """ + } } then { @@ -74,8 +75,9 @@ nextflow_process { process { """ input[0] = [ - [ id: 'test', single_end: true ], // meta map - file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true) // FASTQ file + [ id:'test1', single_end:false ], // meta map for the first input + file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true), // First input (FASTQ file) + null // Second input is null ] """ }