import { SendDataBridgeRequest, SendDataRequest, } from "@zwave-js/serial/serialapi";
export function assertCC(expect, callArg, options) {
    const request = callArg;
    try {
        expect(request).toBeInstanceOf(SendDataRequest);
    }
    catch {
        expect(request).toBeInstanceOf(SendDataBridgeRequest);
    }
    if (options.nodeId)
        expect(request.getNodeId()).toBe(options.nodeId);
    const command = request.command;
    expect(command).toBeInstanceOf(options.cc);
    if (options.ccValues) {
        for (const [prop, val] of Object.entries(options.ccValues)) {
            expect(command[prop]).toBe(val);
        }
    }
}
//# sourceMappingURL=assertCC.js.map