From ed6b338f424287c2503e2ec40856a1a27f49fb92 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sun, 13 Nov 2022 15:39:14 -0600 Subject: [PATCH] test: Add test for latest_stable_release_data --- test/functions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/functions.ts b/test/functions.ts index bf94ba9..ef77b64 100644 --- a/test/functions.ts +++ b/test/functions.ts @@ -16,7 +16,12 @@ test('all_nf_releases', async t => { t.is(typeof result, 'object') }) -test.todo('lastest_stable_release_data') +test('lastest_stable_release_data', async t => { + const result = await functions.latest_stable_release_data(t.context.octokit) + t.is(typeof result, 'object') + t.is(result.tag_name, 'v22.10.2') +}) + test.todo('release_data') test.todo('nextflow_bin_url') test.todo('install_nextflow')