<commit_before>import { document } from 'global';
import Button from './Button.svelte';

let target;
let component;

describe('Button Component', () => {
  beforeEach(() => {
    target = document.createElement('div');

    component = new Button({ target });
  });

  it('should render `text` property', () => {
    const text = '<NAME>';

    component.set({ text });

    const componentText = target.firstChild.textContent.trim();

    expect(componentText).toEqual(text);
  });
});
<commit_msg>Aligning unit test to updated Button component textContent<commit_after>import { document } from 'global';
import Button from './Button.svelte';

let target;
let component;

describe('Button Component', () => {
  beforeEach(() => {
    target = document.createElement('div');

    component = new Button({ target });
  });

  it('should render `text` property', () => {
    const text = '<NAME>';
    const expected = `Round corners\n  ${text}`;

    component.set({ text });

    const componentText = target.firstChild.textContent.trim();

    expect(componentText).toEqual(expected);
  });
});

{'fraction_non_alphanumeric': 0.16970802919708028, 'fraction_numerical': 0.0, 'mean_word_length': 3.9414414414414414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '934339', 'n_tokens_mistral': 313, 'n_tokens_neox': 303, 'n_words': 80}