Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(simulator): Added tests for all modules except device and exchange #259

Merged
merged 9 commits into from
Oct 31, 2023
4 changes: 2 additions & 2 deletions packages/simulator/src/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getSimulatorTransport(
const serverTransport: Transport = {
onMessage: undefined,
send: (payload) => {
console.log("wallet -> app", payload);
console.info("wallet -> app", payload);
if (clientTransport?.onMessage) {
clientTransport.onMessage(payload);
}
Expand All @@ -27,7 +27,7 @@ export function getSimulatorTransport(
clientTransport = {
onMessage: undefined,
send: (payload) => {
console.log("app -> wallet", payload);
console.info("app -> wallet", payload);
if (serverTransport?.onMessage) {
serverTransport.onMessage(payload);
}
Expand Down
3 changes: 0 additions & 3 deletions packages/simulator/tests/server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ describe("Server", () => {
const res2 = await client.custom.log2.log("test2");
const device = await client.custom.device.open("fake-id");

console.log(res);
console.log(res2);
console.log(device);

expect(res).not.toBeFalsy();
expect(res2).not.toBeFalsy();
Expand Down
Loading