From 0062ce1e098c3875e4eb122f164234d1582cbc93 Mon Sep 17 00:00:00 2001 From: PaulSut <49641479+PaulSut@users.noreply.github.com> Date: Sun, 11 Feb 2024 14:50:13 +0100 Subject: [PATCH] refine tickets test Co-authored-by: Jannis R --- test/e2e/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/db.js b/test/e2e/db.js index f07197a4..ddc19722 100644 --- a/test/e2e/db.js +++ b/test/e2e/db.js @@ -58,7 +58,7 @@ const assertValidPrice = (t, p) => { } const assertValidTickets = (test, tickets) => { - test.ok(tickets); + test.ok(Array.isArray(tickets)); for (let fare of tickets) { if (fare.name !== undefined) { test.equal(typeof fare.name, 'string');