<commit_before>import React from "react";
import { render } from "@testing-library/react";
// Testing-Component
import { Subscription } from ".";
// Assets
import { LINK, LINK_DESCRIPTION } from "assets/static/phrases";
import { INTERNAL } from "assets/static/urls";
// Libs
import { TestProvider } from "lib/testUtils";

describe("<Subscription>", () => {
  const renderSubscription = () =>
    render(
      <TestProvider>
        <Subscription />
      </TestProvider>
    );
  it("링크 설명 문구가 보여진다.", () => {
    const { getByText } = renderSubscription();

    getByText(LINK_DESCRIPTION.CONFIRM_RECRUIT);
  });
  it("버튼을 클릭하면 props로 전달된곳으로 페이지가 이동된다.", () => {
    const { getByRole } = renderSubscription();

    const linkEle = getByRole("link", { name: LINK.CONFIRM_RECRUIT });
    expect(linkEle?.getAttribute("href")).toBe(INTERNAL.RECRUIT);
  });
});<commit_msg>:white_check_mark: 컴포넌트의 링크 및 텍스트가 변경됨에 따른 테스트 코드 수정<commit_after>import React from "react";
import { render } from "@testing-library/react";
// Testing-Component
import { Subscription } from ".";
// Assets
import { LINK, LINK_DESCRIPTION } from "assets/static/phrases";
import { INTERNAL } from "assets/static/urls";
// Libs
import { TestProvider } from "lib/testUtils";

describe("<Subscription>", () => {
  const renderSubscription = () =>
    render(
      <TestProvider>
        <Subscription />
      </TestProvider>
    );
  it("링크 설명 문구가 보여진다.", () => {
    const { getByText } = renderSubscription();

    getByText(LINK_DESCRIPTION.RECEIVE_SUBSCRIPTION);
  });
  it("버튼을 클릭하면 props로 전달된곳으로 페이지가 이동된다.", () => {
    const { getByRole } = renderSubscription();

    const linkEle = getByRole("link", { name: LINK.RECEIVE_SUBSCRIPTION });
    expect(linkEle?.getAttribute("href")).toBe(INTERNAL.SUBSCRIPTION);
  });
});
{'fraction_non_alphanumeric': 0.16129032258064516, 'fraction_numerical': 0.0, 'mean_word_length': 3.836021505376344, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '6640440', 'n_tokens_mistral': 658, 'n_tokens_neox': 721, 'n_words': 123}