blob: d5c1c43d88d9cd6b9e6a56653f7ca46d8cef1143 (
plain) (
tree)
|
|
describe('noConflict', () => {
it('should be a static method', () => {
expect(Cropper.noConflict).to.be.a('function');
});
it('should return the Cropper class itself', () => {
const { Cropper } = window;
const ImageCropper = Cropper.noConflict();
expect(ImageCropper).to.equal(Cropper);
expect(window.Cropper).to.be.undefined;
// Reverts it for the rest test suites
window.Cropper = ImageCropper;
});
});
|