You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
432 B

import { AbstractConnection } from "../../src";
type MethodMap = {
sendTest(value: number): void
};
class MockConnection extends AbstractConnection<MethodMap> {
public write = jest.fn();
}
describe("Abstract IPC Connections", () => {
it("Should write packet", () => {
let connection = new MockConnection();
connection.send("sendTest", 10);
// expect(connection.write.mock.calls[0][0]).toMatchObject({
// });
});
});