code: function attributeStyle(parent, style) {
          Object.keys(style).forEach((attribute) => {
              parent.attr(attribute, style[attribute]);
          });
      }
docs: /* istanbul ignore next This is already well tested.