All files / web/bundles/pimui/js/job/common/edit/field allow-file-upload.ts

100% Statements 10/10
50% Branches 1/2
100% Functions 2/2
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 1514x 14x   14x 14x 25x 25x     25x   14x   14x  
const BaseField = require('pimui/js/job/common/edit/field/switch');
const editionProvider = require('pim/edition');
 
class AllowFileUpload extends BaseField {
    render() {
        Eif (editionProvider.isCloudEdition() === false) {
            super.render();
        }
 
        return this;
    }
}
 
export = AllowFileUpload;