@behance/beff
Advanced tools
Comparing version 9.3.2 to 9.3.3
@@ -409,2 +409,5 @@ define([ | ||
dropZoneElements: [element], | ||
classes: { | ||
dropActive: 'fine-uploader-drop-active', | ||
}, | ||
callbacks: { | ||
@@ -411,0 +414,0 @@ processingDroppedFilesComplete: cb |
{ | ||
"name": "@behance/beff", | ||
"version": "9.3.2", | ||
"version": "9.3.3", | ||
"description": "Behance Frontend Framework", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -333,18 +333,3 @@ define([ | ||
}); | ||
it('creates a DragAndDrop instance with the provided classes', function() { | ||
var dropElementClasses = { | ||
dropActive: 'dropClass', | ||
}; | ||
this.uploader = Uploader.init({ | ||
dropElementClasses: dropElementClasses, | ||
}); | ||
this.uploader.setDropElement(document.body); | ||
expect(fineUploader.DragAndDrop).toHaveBeenCalledWith(jasmine.objectContaining({ | ||
classes: dropElementClasses, | ||
})); | ||
}); | ||
it('creates a DragAndDrop instance with the provided callback', function() { | ||
@@ -360,2 +345,28 @@ var processingDoneFn = jasmine.createSpy(); | ||
}); | ||
it('assigns the default dragActive class', function() { | ||
CloudUploader.setDropElement(); | ||
expect(fineUploader.DragAndDrop).toHaveBeenCalledWith(jasmine.objectContaining({ | ||
classes: { | ||
dropActive: 'fine-uploader-drop-active', | ||
}, | ||
})); | ||
}); | ||
describe('the instance method', function() { | ||
it('creates a DragAndDrop instance with the provided classes', function() { | ||
var dropElementClasses = { | ||
dropActive: 'dropClass', | ||
}; | ||
this.uploader = Uploader.init({ | ||
dropElementClasses: dropElementClasses, | ||
}); | ||
this.uploader.setDropElement(document.body); | ||
expect(fineUploader.DragAndDrop).toHaveBeenCalledWith(jasmine.objectContaining({ | ||
classes: dropElementClasses, | ||
})); | ||
}); | ||
}); | ||
}); | ||
@@ -362,0 +373,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1566457
14110