blob: 9a8c16fed0e3390f957c9361142c3ba8b44e11e0 (
plain) (
tree)
|
|
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();
},
});
});
});
|