Apply suggestions from code review

Co-authored-by: bitterpanda <bitterpanda@proton.me>
This commit is contained in:
bitterpanda 2026-03-27 15:54:30 -07:00 committed by GitHub
parent 5b1cd7e8da
commit faf0ba898c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,8 +57,6 @@ mock.module("../config/settings.js", {
}); });
// Import the warnings module so we can reset its state between tests. // Import the warnings module so we can reset its state between tests.
// The state (hasWarnedAboutUnavailableNewPackagesDatabase) lives in a separate
// module and is not reset by the dynamic-import cache-buster trick used below.
const { resetWarningState } = await import("./newPackagesDatabaseWarnings.js"); const { resetWarningState } = await import("./newPackagesDatabaseWarnings.js");
describe("newPackagesDatabase", async () => { describe("newPackagesDatabase", async () => {