mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-28 15:01:17 -07:00
Chore(deps-dev): Bump vitest and vitest/coverage-v8 in the npm_and_yarn group across 1 directory (#6737)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
co-authored by
copilot-swe-agent[bot]
shamoon
parent
cbb5667512
commit
31a57c60e2
@@ -5,7 +5,7 @@ import createMockRes from "test-utils/create-mock-res";
|
||||
const { UrbackupServer, state, getServiceWidget } = vi.hoisted(() => {
|
||||
const state = { instances: [] };
|
||||
|
||||
const UrbackupServer = vi.fn((opts) => {
|
||||
const UrbackupServer = vi.fn(function UrbackupServer(opts) {
|
||||
const instance = {
|
||||
opts,
|
||||
getStatus: vi.fn(),
|
||||
@@ -46,7 +46,7 @@ describe("widgets/urbackup/proxy", () => {
|
||||
maxDays: 5,
|
||||
});
|
||||
|
||||
UrbackupServer.mockImplementationOnce((opts) => {
|
||||
UrbackupServer.mockImplementationOnce(function UrbackupServer(opts) {
|
||||
const instance = {
|
||||
opts,
|
||||
getStatus: vi.fn().mockResolvedValue([{ id: 1 }]),
|
||||
@@ -76,7 +76,7 @@ describe("widgets/urbackup/proxy", () => {
|
||||
fields: ["totalUsed"],
|
||||
});
|
||||
|
||||
UrbackupServer.mockImplementationOnce((opts) => {
|
||||
UrbackupServer.mockImplementationOnce(function UrbackupServer(opts) {
|
||||
const instance = {
|
||||
opts,
|
||||
getStatus: vi.fn().mockResolvedValue([{ id: 1 }]),
|
||||
@@ -99,7 +99,7 @@ describe("widgets/urbackup/proxy", () => {
|
||||
it("returns 500 on server errors", async () => {
|
||||
getServiceWidget.mockResolvedValue({ url: "http://ur", username: "u", password: "p" });
|
||||
|
||||
UrbackupServer.mockImplementationOnce((opts) => {
|
||||
UrbackupServer.mockImplementationOnce(function UrbackupServer(opts) {
|
||||
const instance = {
|
||||
opts,
|
||||
getStatus: vi.fn().mockRejectedValue(new Error("nope")),
|
||||
|
||||
Reference in New Issue
Block a user