Skip to content

Commit

Permalink
More debugging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Oct 1, 2024
1 parent 5e2b250 commit 725f54d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ export async function syncTables(force=false): Promise<void> {
export async function addAPIKey(): Promise<APIKey | void> {
// 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() {
Expand Down

0 comments on commit 725f54d

Please sign in to comment.