UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

2 lines (1 loc) 308 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=(t,e)=>({width:t,height:e,top:0,left:0,bottom:0,right:0,x:0,y:0,toJSON:()=>{}});exports.default=(e,o,n)=>{Element.prototype.getBoundingClientRect=jest.fn((function(){return this.getAttribute("data-component")===n?t(e,o):t(0,0)}))};