import ExcalidrawElementUtils from "../../../../src/utils/ExcalidrawElementUtils" ; import PrintableAreaUtils from "../../../../src/utils/PrintableAreaUtils" ; describe ( "ExcalidrawElementUtils.extractCommonExcalidrawElements" , ( ) => { it ( "removes the printable area from the passed-in excalidraw elements" , ( ) => { const commonExcalidrawElements = [ { id : "commonExcalidrawElementId" , versionNonce : 0 } , ] ; const excalidrawInputExcalidrawElements = [ ... commonExcalidrawElements , PrintableAreaUtils . getExcalidrawElement ( { width : 100 , height : 100 , } ) , ] ; const extractedCommonExcalidrawElements = ExcalidrawElementUtils . extractCommonExcalidrawElements ( excalidrawInputExcalidrawElements ) ; expect ( extractedCommonExcalidrawElements ) . toEqual ( commonExcalidrawElements ) ; } ) ; } ) ;