Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+5
-5
@@ -1,10 +1,10 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { getAdminActiveUserKpiCounts, getAdminTenantKpiCounts } from "@toolctrl/db/kpi.server";
|
||||
import { getAdminActiveUserKpiCounts, getAdminTenantKpiCounts } from "@hivegrid/db/kpi.server";
|
||||
import { StatChange } from "~/application/dtos/stats/StatChange";
|
||||
import { getAdminDashboardStats } from "./adminDashboardService";
|
||||
import { getMrr } from "./.server/subscriptionService";
|
||||
|
||||
vi.mock("@toolctrl/db/kpi.server", () => ({
|
||||
vi.mock("@hivegrid/db/kpi.server", () => ({
|
||||
getAdminActiveUserKpiCounts: vi.fn(),
|
||||
getAdminTenantKpiCounts: vi.fn(),
|
||||
}));
|
||||
@@ -45,7 +45,7 @@ describe("getAdminDashboardStats", () => {
|
||||
expect(getAdminActiveUserKpiCounts).toHaveBeenCalledTimes(1);
|
||||
expect(getAdminActiveUserKpiCounts).toHaveBeenCalledWith({ gte });
|
||||
expect(getMrr).toHaveBeenCalledTimes(1);
|
||||
expect(getMrr).toHaveBeenCalledWith("usd");
|
||||
expect(getMrr).toHaveBeenCalledWith("eur");
|
||||
expect(stats).toEqual([
|
||||
{
|
||||
name: "Translated accounts",
|
||||
@@ -59,7 +59,7 @@ describe("getAdminDashboardStats", () => {
|
||||
{
|
||||
name: "Translated MRR",
|
||||
hint: "Translated monthly revenue",
|
||||
stat: "$1,234.50",
|
||||
stat: "€1,234.50",
|
||||
previousStat: "7 translated accounts",
|
||||
},
|
||||
{
|
||||
@@ -94,7 +94,7 @@ describe("getAdminDashboardStats", () => {
|
||||
expect(stats[1]).toMatchObject({
|
||||
name: "admin.kpi.mrr.name",
|
||||
hint: "admin.kpi.mrr.hint",
|
||||
stat: "$0.00",
|
||||
stat: "€0.00",
|
||||
previousStat: "admin.kpi.mrr.previousStat",
|
||||
});
|
||||
expect(stats[2]).toMatchObject({
|
||||
|
||||
Reference in new issue
Block a user