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({
|
|
|
|
// });
|
|
});
|
|
});
|