All files / web/bundles/pimui/js/form/common/fields password.ts

100% Statements 11/11
66.67% Branches 2/3
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 15 16 17 18 19 20 21 2217x 17x 17x             58x 58x         17x 26x   17x   17x  
const _ = require('underscore');
const BaseText = require('pim/form/common/fields/text');
const template = require('pim/template/form/common/fields/password');
 
/**
 * @author    Pierre Allard <pierre.allard@akeneo.com>
 * @copyright 2018 Akeneo SAS (http://www.akeneo.com)
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */
class PasswordField extends BaseText {
  readonly template = _.template(template);
 
  /**
   * {@inheritdoc}
   */
  renderInput(templateContext: any) {
    return this.template(Object.assign(templateContext, {value: ''}));
  }
}
 
export = PasswordField;