From 1b58f9294715542c62a847c83c761e5a2bdee89c Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Mon, 30 Oct 2023 21:35:19 -0700 Subject: [PATCH] fix unit test --- test/testHubs.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/testHubs.js b/test/testHubs.js index 0f0c688e3..1d655dc42 100644 --- a/test/testHubs.js +++ b/test/testHubs.js @@ -27,7 +27,12 @@ suite("hub.txt", function () { assert.ok(genomeConfig.twoBitURL) assert.ok(genomeConfig.chromAliasBbURL) assert.ok(genomeConfig.cytobandBbURL) - assert.ok(genomeConfig.trackConfigurations.length > 0) + }) + + test("track configs", async function() { + const hub = await Hub.loadHub("test/data/hubs/hub.txt") + const groupedTrackConfigurations = hub.getGroupedTrackConfigurations(); + assert.equal(5, groupedTrackConfigurations.length); })