Skip to content

Commit

Permalink
address suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Dec 1, 2024
1 parent ef59aef commit 74b6943
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion ts/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import type {
RegisterDnaRequest,
RoleName,
RoleSettingsMap,
RoleNameCallZomeRequest,
} from "@holochain/client";

/**
Expand Down
6 changes: 1 addition & 5 deletions ts/test/local/scenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions ts/test/trycp/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion ts/test/trycp/conductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 74b6943

Please sign in to comment.