UNPKG

carbon-react

Version:

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

2 lines (1 loc) 247 B
const t=(t,e)=>({width:t,height:e,top:0,left:0,bottom:0,right:0,x:0,y:0,toJSON:()=>{}}),e=(e,o,n)=>{Element.prototype.getBoundingClientRect=jest.fn((function(){return this.getAttribute("data-component")===n?t(e,o):t(0,0)}))};export{e as default};