From 725f54dba66fa06d24310929b4c8222345de9d7c Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Tue, 1 Oct 2024 13:21:36 -0400 Subject: [PATCH] More debugging statements. --- tests/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/utils.ts b/tests/utils.ts index 5b6e67e..0d990d3 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -73,10 +73,13 @@ export async function syncTables(force=false): Promise { export async function addAPIKey(): Promise { // Set up some basic data that we're going to want console.log(`hashed key is undefined: ${process.env.HASHED_API_KEY === undefined}`); - return APIKey.create({ + await APIKey.create({ hashed_key: process.env.HASHED_API_KEY as string, client: "Tests", }); + + const keys = await APIKey.findAll(); + console.log(`There are ${keys.length} keys`); } export async function addTestData() {