Files
JiboSDK/node_modules/region/test/RegionIntersection.js

18 lines
429 B
JavaScript
Raw Permalink Normal View History

2026-03-22 03:21:45 +02:00
describe('Region intersection', function(){
var Region = require('../index')
it('should containPoint', function(){
var inner = Region({
left: 97, right: 147, top: 51, bottom: 251
})
var outer = Region({
left: 11, right: 447, top: 51, bottom: 937
})
outer.getIntersection(inner).getArea()
.should
.equal(inner.getArea())
})
})