<commit_before>require "test_helper"

class SiteChannelDetailsSerializerTest < ActiveSupport::TestCase
  test "site channels are serialized as JSON and include owner and channel details rolled up" do
    channel = channels(:verified)

    result = SiteChannelDetailsSerializer.new(channel.details).to_json
    json_result = JSON.parse(result)

    assert_equal "verified.org", json_result["id"]
    assert_equal "wordpress", json_result["method"]
    assert_equal "<NAME>", json_result["name"]
    assert_equal "<EMAIL>", json_result["email"]
    assert_nil json_result["preferred_currency"]
  end
end
<commit_msg>Update test to take into account new fixture values (#2783)<commit_after>require "test_helper"

class SiteChannelDetailsSerializerTest < ActiveSupport::TestCase
  test "site channels are serialized as JSON and include owner and channel details rolled up" do
    channel = channels(:verified)

    result = SiteChannelDetailsSerializer.new(channel.details).to_json
    json_result = JSON.parse(result)

    assert_equal "verified.org", json_result["id"]
    assert_equal "wordpress", json_result["method"]
    assert_equal "<NAME>", json_result["name"]
    assert_equal "<EMAIL>", json_result["email"]
    assert_equal "BAT", json_result["preferred_currency"]
  end
end

{'fraction_non_alphanumeric': 0.09976617303195635, 'fraction_numerical': 0.003117692907248636, 'mean_word_length': 5.652849740932642, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4226855', 'n_tokens_mistral': 358, 'n_tokens_neox': 347, 'n_words': 96}