Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Apr 25, 2024
1 parent 3b3fb1b commit ccee833
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
5 changes: 1 addition & 4 deletions src/api/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ export type AppDisableCloneCellRequest = Omit<
/**
* @public
*/
export type AppNetworkInfoRequest = Omit<
NetworkInfoRequest,
"agent_pub_key"
>;
export type AppNetworkInfoRequest = Omit<NetworkInfoRequest, "agent_pub_key">;

/**
* @public
Expand Down
4 changes: 1 addition & 3 deletions src/api/app/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,7 @@ export class AppWebsocket implements AppClient {
* @param args - Specify the DNAs for which you want network info
* @returns Network info for the specified DNAs
*/
async networkInfo(
args: AppNetworkInfoRequest
): Promise<NetworkInfoResponse> {
async networkInfo(args: AppNetworkInfoRequest): Promise<NetworkInfoResponse> {
return this.networkInfoRequester({
...args,
agent_pub_key: this.myPubKey,
Expand Down
5 changes: 1 addition & 4 deletions src/environments/launcher.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { encode } from "@msgpack/msgpack";
import { invoke } from "@tauri-apps/api/tauri";
import { CallZomeRequest } from "../api";
import {
CallZomeRequestSigned,
CallZomeRequestUnsigned,
} from "../api";
import { CallZomeRequestSigned, CallZomeRequestUnsigned } from "../api";
import { getNonceExpiration, randomNonce } from "../api";
import { InstalledAppId } from "../types.js";

Expand Down
13 changes: 3 additions & 10 deletions test/e2e/app-websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ test(

t.equal(response, null, "app entry type deserializes correctly");

const cellIdFromRoleName = appWs.getCellIdFromRoleName(
ROLE_NAME,
info
);
const cellIdFromRoleName = appWs.getCellIdFromRoleName(ROLE_NAME, info);
t.deepEqual(cellIdFromRoleName, cell_id);

const response_from_role_name = await appWs.callZome({
Expand Down Expand Up @@ -208,9 +205,7 @@ test(
test(
"can create a callable clone cell and call it by clone id",
withConductor(ADMIN_PORT, async (t) => {
const { admin, client: appWs } = await createAppWsAndInstallApp(
ADMIN_PORT
);
const { admin, client: appWs } = await createAppWsAndInstallApp(ADMIN_PORT);
const info = await appWs.appInfo();

const createCloneCellParams: AppCreateCloneCellRequest = {
Expand Down Expand Up @@ -249,9 +244,7 @@ test(
test(
"can disable and re-enable a clone cell",
withConductor(ADMIN_PORT, async (t) => {
const { admin, client: appWs } = await createAppWsAndInstallApp(
ADMIN_PORT
);
const { admin, client: appWs } = await createAppWsAndInstallApp(ADMIN_PORT);

const createCloneCellParams: AppCreateCloneCellRequest = {
role_name: ROLE_NAME,
Expand Down

0 comments on commit ccee833

Please sign in to comment.