blob: ed20ad1fd1f9a555e4ec128feb5c851d1c916037 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
describe('Cropper', () => {
it('should be a class (function)', () => {
expect(Cropper).to.be.a('function');
});
it('should throw error when the first argument is not an element', () => {
expect(() => {
new Cropper(document);
}).to.throw('The first argument is required and must be an <img> or <canvas> element.');
});
});
|