<commit_before>import { describe, it } from 'mocha';
import unexpected from 'unexpected';
import unexpectedReact from 'unexpected-react';

import { Link } from 'react-router';
import flatten from 'lodash/flatten';

import PostComments from '../../../src/components/post-comments';
import PostComment from '../../../src/components/post-comment';
import ErrorBoundary from '../../../src/components/error-boundary';
import ExpandComments from '../../../src/components/post-comments/expand-comments';
import { LoadingComments } from '../../../src/components/post-comments/loading-comments';
import { SignInLink } from '../../../src/components/sign-in-link';

const expect = unexpected.clone().use(unexpectedReact);

const generateArray = (n) => [...Array(n).keys()].map(() => ({}));
const commentArrays = generateArray(5).map((_, index) => generateArray(index));

describe('<PostComments>', () => {
  it(`should render first comment if there're any comments`, () => {
    const post = {
      omittedComments: 1,
      omittedCommentsOffset: 1,
      isCommenting: false,
      createdBy: { username: '' },
      user: {},
    };
<commit_msg>Fix rebase artifact<commit_after>import { describe, it } from 'mocha';
import unexpected from 'unexpected';
import unexpectedReact from 'unexpected-react';

import flatten from 'lodash/flatten';

import PostComments from '../../../src/components/post-comments';
import PostComment from '../../../src/components/post-comment';
import ErrorBoundary from '../../../src/components/error-boundary';
import ExpandComments from '../../../src/components/post-comments/expand-comments';
import { LoadingComments } from '../../../src/components/post-comments/loading-comments';
import { SignInLink } from '../../../src/components/sign-in-link';

const expect = unexpected.clone().use(unexpectedReact);

const generateArray = (n) => [...Array(n).keys()].map(() => ({}));
const commentArrays = generateArray(5).map((_, index) => generateArray(index));

describe('<PostComments>', () => {
  it(`should render first comment if there're any comments`, () => {
    const post = {
      omittedComments: 1,
      omittedCommentsOffset: 1,
      isCommenting: false,
      createdBy: { username: '' },
      user: {},
    };

{'fraction_non_alphanumeric': 0.18975501113585747, 'fraction_numerical': 0.0026726057906458797, 'mean_word_length': 3.7584745762711864, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '114588', 'n_tokens_mistral': 636, 'n_tokens_neox': 628, 'n_words': 152}