fix(api): update resource-router tests for select-based listStaff queries
Tests expected include: { resourceRoles } but the Prisma select audit
changed the query to select: { ...RESOURCE_LIST_SELECT, resourceRoles }.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1400,7 +1400,7 @@ describe("resource router", () => {
|
||||
|
||||
expect(db.resource.findMany).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
include: expect.objectContaining({
|
||||
select: expect.objectContaining({
|
||||
resourceRoles: expect.objectContaining({
|
||||
include: expect.any(Object),
|
||||
}),
|
||||
@@ -1965,7 +1965,7 @@ describe("resource router", () => {
|
||||
|
||||
expect(db.resource.findMany).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
include: expect.objectContaining({
|
||||
select: expect.objectContaining({
|
||||
resourceRoles: expect.objectContaining({
|
||||
include: expect.any(Object),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user