Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should validate passed capture area', () => {
validate({
viewport: {coords: {top: 0, left: 0}},
captureArea: {top: 1, left: 1}
});
assert.calledWith(CoordValidator.prototype.validate, {top: 0, left: 0}, {top: 1, left: 1});
});
});
beforeEach(() => {
sandbox.spy(CoordValidator, 'create');
sandbox.stub(CoordValidator.prototype, 'validate');
});