import { CommandClasses } from "@zwave-js/core" ; import type { Driver } from "../driver/Driver" ; import { createEmptyMockDriver } from "../test/mocks" ; import { CommandClass , getCommandClass } from "./CommandClass" ; import { VersionCC } from "./VersionCC" ; const fakeDriver = createEmptyMockDriver ( ) as unknown as Driver ; describe ( "lib/commandclass/VersionCC => " , ( ) => { const cc = new VersionCC ( fakeDriver , { nodeId : 9 } ) ; it ( "should be a CommandClass" , ( ) => { expect ( cc ) . toBeInstanceOf ( CommandClass ) ; } ) ; it ( `with command class "Version"` , ( ) => { expect ( getCommandClass ( cc ) ) . toBe ( CommandClasses . Version ) ; } ) ; } ) ;