rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61)
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61) Co-authored-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com> Co-committed-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
This commit was merged in pull request #61.
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { PermissionKey, SystemRole } from "@capakraken/shared";
|
||||
import { PermissionKey, SystemRole } from "@nexus/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import {
|
||||
createToolContext,
|
||||
executeTool,
|
||||
} from "./assistant-tools-demand-create-test-helpers.js";
|
||||
import { createToolContext, executeTool } from "./assistant-tools-demand-create-test-helpers.js";
|
||||
|
||||
describe("assistant demand create tool - role resolution errors", () => {
|
||||
beforeEach(() => {
|
||||
@@ -15,15 +12,13 @@ describe("assistant demand create tool - role resolution errors", () => {
|
||||
const ctx = createToolContext(
|
||||
{
|
||||
project: {
|
||||
findUnique: vi.fn()
|
||||
.mockResolvedValueOnce(null)
|
||||
.mockResolvedValueOnce({
|
||||
id: "project_1",
|
||||
name: "Project One",
|
||||
shortCode: "PROJ-1",
|
||||
status: "ACTIVE",
|
||||
responsiblePerson: "Peter Parker",
|
||||
}),
|
||||
findUnique: vi.fn().mockResolvedValueOnce(null).mockResolvedValueOnce({
|
||||
id: "project_1",
|
||||
name: "Project One",
|
||||
shortCode: "PROJ-1",
|
||||
status: "ACTIVE",
|
||||
responsiblePerson: "Peter Parker",
|
||||
}),
|
||||
findFirst: vi.fn().mockResolvedValue(null),
|
||||
},
|
||||
role: {
|
||||
@@ -60,15 +55,13 @@ describe("assistant demand create tool - role resolution errors", () => {
|
||||
const ctx = createToolContext(
|
||||
{
|
||||
project: {
|
||||
findUnique: vi.fn()
|
||||
.mockResolvedValueOnce(null)
|
||||
.mockResolvedValueOnce({
|
||||
id: "project_1",
|
||||
name: "Project One",
|
||||
shortCode: "PROJ-1",
|
||||
status: "ACTIVE",
|
||||
responsiblePerson: "Peter Parker",
|
||||
}),
|
||||
findUnique: vi.fn().mockResolvedValueOnce(null).mockResolvedValueOnce({
|
||||
id: "project_1",
|
||||
name: "Project One",
|
||||
shortCode: "PROJ-1",
|
||||
status: "ACTIVE",
|
||||
responsiblePerson: "Peter Parker",
|
||||
}),
|
||||
findFirst: vi.fn().mockResolvedValue(null),
|
||||
},
|
||||
role: {
|
||||
|
||||
Reference in New Issue
Block a user