chore: expand reports coverage and upgrade next
This commit is contained in:
parent
2fb587b01d
commit
8b82284e8c
21 changed files with 2952 additions and 2713 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { describe, it, expect, vi } from "vitest"
|
||||
|
||||
import type { Doc, Id } from "../convex/_generated/dataModel"
|
||||
import { getById } from "../convex/machines"
|
||||
import { getByIdHandler } from "../convex/machines"
|
||||
|
||||
const FIXED_NOW = 1_706_071_200_000
|
||||
|
||||
|
|
@ -65,8 +65,8 @@ describe("convex.machines.getById", () => {
|
|||
})),
|
||||
}
|
||||
|
||||
const ctx = { db } as unknown as Parameters<typeof getById>[0]
|
||||
const result = await getById(ctx, { id: machine._id, includeMetadata: true })
|
||||
const ctx = { db } as unknown as Parameters<typeof getByIdHandler>[0]
|
||||
const result = await getByIdHandler(ctx, { id: machine._id, includeMetadata: true })
|
||||
|
||||
expect(result).toBeTruthy()
|
||||
expect(result?.metrics).toBeTruthy()
|
||||
|
|
@ -75,4 +75,3 @@ describe("convex.machines.getById", () => {
|
|||
expect(result?.token).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue