From c5d63eb232de74ce70fa00d67c7843b446ac7382 Mon Sep 17 00:00:00 2001 From: barbmarcio Date: Fri, 19 Jul 2024 19:58:26 +0100 Subject: [PATCH] fix: biome formatting --- bunfig.toml | 2 +- e2e/auctions.test.ts | 4 ++-- e2e/events.test.ts | 8 ++++---- global.d.ts | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bunfig.toml b/bunfig.toml index 101803d..61328de 100644 --- a/bunfig.toml +++ b/bunfig.toml @@ -1,3 +1,3 @@ [test] coverage = true -root = "./test" \ No newline at end of file +root = "./test" diff --git a/e2e/auctions.test.ts b/e2e/auctions.test.ts index 73d6c60..63b963f 100644 --- a/e2e/auctions.test.ts +++ b/e2e/auctions.test.ts @@ -57,11 +57,11 @@ test.describe("Create Auction via Topsort SDK", () => { }); test("should fail to call with missing apiKey", async ({ page }) => { - const expectedError = { status: 401, statusText: 'API Key is required.', body: {} } + const expectedError = { status: 401, statusText: "API Key is required.", body: {} }; await page.goto("http://localhost:8080/e2e"); const result = await page.evaluate(() => { const config = { - apiKey: null + apiKey: null, }; const auctionDetails = { diff --git a/e2e/events.test.ts b/e2e/events.test.ts index 38b18b1..400223c 100644 --- a/e2e/events.test.ts +++ b/e2e/events.test.ts @@ -4,8 +4,8 @@ import { apis, baseURL } from "../src/constants/apis.constant"; test.describe("Report Events via Topsort SDK", () => { test("should report an successfully", async ({ page }) => { const mockAPIResponse = { - ok: true - } + ok: true, + }; await page.route(`${baseURL}/${apis.events}`, async (route) => { await route.fulfill({ json: mockAPIResponse }); @@ -43,11 +43,11 @@ test.describe("Report Events via Topsort SDK", () => { }); test("should fail to call with missing apiKey", async ({ page }) => { - const expectedError = { status: 401, statusText: 'API Key is required.', body: {} } + const expectedError = { status: 401, statusText: "API Key is required.", body: {} }; await page.goto("http://localhost:8080/e2e"); const result = await page.evaluate(() => { const config = { - apiKey: null + apiKey: null, }; const event = { diff --git a/global.d.ts b/global.d.ts index 8aa34ae..f9bc02d 100644 --- a/global.d.ts +++ b/global.d.ts @@ -1,6 +1,6 @@ interface Window { sdk: { - createAuction: (a, b) => unknown, - reportEvent: (a, b) => unknown, + createAuction: (a, b) => unknown; + reportEvent: (a, b) => unknown; }; }