import { faker } from '@faker-js/faker';
import { newSpecPage } from '@stencil/core/testing';
import { BsProfileDetails } from '../bs-profile-details';
import { queryByText } from '@testing-library/dom';
const name = faker.name.fullName();
const company = faker.company.name();
const title = faker.name.jobTitle();
const email = faker.internet.email();
describe('bs-profile-details', () => {
  it('renders a Name', async () => {
    const page = await newSpecPage({
      components: [BsProfileDetails],
      html: `<bs-profile-details profile-name="${name}"></bs-profile-details>`,
    });
    expect(queryByText(page.root, name)).toBeTruthy();
  });
  it('renders a Company', async () => {
    const page = await newSpecPage({
      components: [BsProfileDetails],
      html: `<bs-profile-details profile-name="${name}" company="${company}"></bs-profile-details>`,
    });
    expect(queryByText(page.root, company)).toBeTruthy();
  });
  it('renders a Job Title', async () => {
    const page = await newSpecPage({
      components: [BsProfileDetails],
      html: `<bs-profile-details profile-name="${name}" job-title="${title}"></bs-profile-details>`,
    });
    expect(queryByText(page.root, title)).toBeTruthy();
  });
  it('renders a email', async () => {
    const page = await newSpecPage({
      components: [BsProfileDetails],
      html: `<bs-profile-details profile-name="${name}" email="${email}"></bs-profile-details>`,
    });
    expect(queryByText(page.root, email)).toBeTruthy();
  });
});
//# sourceMappingURL=bs-profile-details.spec.js.map
