blob: 9a8c16fed0e3390f957c9361142c3ba8b44e11e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
describe('enable (method)', () => {
it('should be enabled', (done) => {
const image = window.createImage();
const cropper = new Cropper(image, {
ready() {
cropper.disable();
expect(cropper.disabled).to.be.true;
expect(cropper.cropper.className).to.include('cropper-disabled');
cropper.enable();
expect(cropper.disabled).to.be.false;
expect(cropper.cropper.className).to.not.include('cropper-disabled');
done();
},
});
});
});
|