From d04289948e465dcd450b33c23406cfc82f07edd8 Mon Sep 17 00:00:00 2001 From: LightZirconite Date: Sat, 8 Nov 2025 12:20:38 +0100 Subject: [PATCH] Fix: Reorganize imports for better clarity in test files --- src/browser/Browser.ts | 6 +++--- tests/flows/desktopFlow.test.ts | 2 +- tests/flows/mobileFlow.test.ts | 2 +- tests/flows/summaryReporter.test.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/browser/Browser.ts b/src/browser/Browser.ts index edd3bd4..da46c42 100644 --- a/src/browser/Browser.ts +++ b/src/browser/Browser.ts @@ -1,11 +1,11 @@ -import playwright, { BrowserContext } from 'rebrowser-playwright' -import { newInjectedContext } from 'fingerprint-injector' import { FingerprintGenerator } from 'fingerprint-generator' +import { newInjectedContext } from 'fingerprint-injector' +import playwright, { BrowserContext } from 'rebrowser-playwright' import { MicrosoftRewardsBot } from '../index' +import { AccountProxy } from '../interface/Account' import { loadSessionData, saveFingerprintData } from '../util/Load' import { updateFingerprintUserAgent } from '../util/UserAgent' -import { AccountProxy } from '../interface/Account' class Browser { private bot: MicrosoftRewardsBot diff --git a/tests/flows/desktopFlow.test.ts b/tests/flows/desktopFlow.test.ts index bef6357..134712e 100644 --- a/tests/flows/desktopFlow.test.ts +++ b/tests/flows/desktopFlow.test.ts @@ -1,5 +1,5 @@ -import test from 'node:test' import assert from 'node:assert/strict' +import test from 'node:test' /** * DesktopFlow unit tests diff --git a/tests/flows/mobileFlow.test.ts b/tests/flows/mobileFlow.test.ts index 742451e..28d7636 100644 --- a/tests/flows/mobileFlow.test.ts +++ b/tests/flows/mobileFlow.test.ts @@ -1,5 +1,5 @@ -import test from 'node:test' import assert from 'node:assert/strict' +import test from 'node:test' /** * MobileFlow unit tests diff --git a/tests/flows/summaryReporter.test.ts b/tests/flows/summaryReporter.test.ts index b7c4e9c..00f0d90 100644 --- a/tests/flows/summaryReporter.test.ts +++ b/tests/flows/summaryReporter.test.ts @@ -1,5 +1,5 @@ -import test from 'node:test' import assert from 'node:assert/strict' +import test from 'node:test' /** * SummaryReporter unit tests