ReportsKit.configure do |config|
  config.custom_methods = {
    format_percentage: -> (value) { "#{value.round(0)}%" },
    add_label_suffix: -> (data) {
      data[:entities] = data[:entities].map do |entity|
        entity.label = "#{entity.label} Foo" if entity.label
        entity
      end
      data
    }
  }
end

ReportsKit.configure do |config|
  config.custom_methods = {
    format_percentage: -> (value) { "#{value.round(0)}%" },
    add_label_suffix: -> (data) {
      data[:entities].each do |entity|
        entity.label = "#{entity.label} Foo" if entity.label
      end
      data
    }
  }
end

Simplify the tests' add_label_suffix custom method
Simplify the tests' add_label_suffix custom method
