diff --git a/ts/src/types.ts b/ts/src/types.ts index 0e23803c..ab0bb45c 100644 --- a/ts/src/types.ts +++ b/ts/src/types.ts @@ -19,7 +19,6 @@ import type { RegisterDnaRequest, RoleName, RoleSettingsMap, - RoleNameCallZomeRequest, } from "@holochain/client"; /** diff --git a/ts/test/local/scenario.ts b/ts/test/local/scenario.ts index a2c4022f..339148e5 100644 --- a/ts/test/local/scenario.ts +++ b/ts/test/local/scenario.ts @@ -2,15 +2,12 @@ import { ActionHash, AppBundleSource, AppSignal, - AppWebsocket, EntryHash, - PreflightResponse, Signal, SignalCb, SignalType, } from "@holochain/client"; import assert from "node:assert/strict"; -import { readFileSync } from "node:fs"; import test from "tape-promise/tape.js"; import { Scenario, dhtSync, getZomeCaller, runScenario } from "../../src"; import { FIXTURE_HAPP_URL } from "../fixture"; @@ -374,8 +371,7 @@ test("Local Scenario - runScenario - call zome by role name", async (t) => { path: FIXTURE_HAPP_URL.pathname, }); - const result = (await (alice.appWs as AppWebsocket).callZome({ - role_name: "test", + const result = (await alice.namedCells.get("test")?.callZome({ zome_name: "coordinator", fn_name: "create", payload: "hello", diff --git a/ts/test/trycp/client.ts b/ts/test/trycp/client.ts index ae7e608a..4762ea59 100644 --- a/ts/test/trycp/client.ts +++ b/ts/test/trycp/client.ts @@ -3,11 +3,7 @@ import { Buffer } from "node:buffer"; import { URL } from "node:url"; import test from "tape-promise/tape.js"; import { _ALLOWED_ORIGIN, enableAndGetAgentApp } from "../../src/common.js"; -import { - createTryCpConductor, - DEFAULT_PARTIAL_PLAYER_CONFIG, - TryCpConductor, -} from "../../src/trycp/index.js"; +import { createTryCpConductor, TryCpConductor } from "../../src/trycp/index.js"; import { TryCpClient } from "../../src/trycp/trycp-client.js"; import { TRYCP_SERVER_HOST, diff --git a/ts/test/trycp/conductor.ts b/ts/test/trycp/conductor.ts index 0ba5217e..e3c745f8 100644 --- a/ts/test/trycp/conductor.ts +++ b/ts/test/trycp/conductor.ts @@ -348,7 +348,7 @@ test("TryCP Conductor - install app with roles settings", async (t) => { const appWs = await conductor.connectAppWs(issued.token, port); const appInfo = await appWs.appInfo(); - if (!appInfo) throw new Error("AppInfo undefined."); + assert(appInfo); const provisionedCell: ProvisionedCell = appInfo.cell_info[ROLE_NAME][0][CellType.Provisioned]; t.equal(provisionedCell.dna_modifiers.network_seed, "hello");