"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var assertCC_exports = {};
__export(assertCC_exports, {
  assertCC: () => assertCC
});
module.exports = __toCommonJS(assertCC_exports);
var import_serialapi = require("@zwave-js/serial/serialapi");
function assertCC(expect, callArg, options) {
  const request = callArg;
  try {
    expect(request).toBeInstanceOf(import_serialapi.SendDataRequest);
  } catch {
    expect(request).toBeInstanceOf(import_serialapi.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);
    }
  }
}
__name(assertCC, "assertCC");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  assertCC
});
//# sourceMappingURL=assertCC.js.map
