From bfbdd65532dc8fc5e7e314f302dcdf9ab47f481a Mon Sep 17 00:00:00 2001 From: Gibran Hemani Date: Tue, 16 Apr 2024 13:04:16 +0100 Subject: [PATCH] added test that token isn't required yet --- tests/testthat/test_query.r | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/testthat/test_query.r b/tests/testthat/test_query.r index b019995..6000ed6 100644 --- a/tests/testthat/test_query.r +++ b/tests/testthat/test_query.r @@ -26,6 +26,13 @@ test_that("gwasinfo", ) }) +test_that("gwasinfo without token", { + a1 <- gwasinfo("ieu-a-2", opengwas_jwt="") + a2 <- gwasinfo("ieu-a-2") + expect_true(all(a1 == a2, na.rm=TRUE)) +}) + + test_that("associations", { expect_true(