import { newSpecPage } from '@stencil/core/testing';
import { BsToaster } from '../bs-toaster';
import { faker } from '@faker-js/faker';
import { queryByText } from '@testing-library/dom';
describe('bs-toaster', () => {
  it('renders', async () => {
    const toastId = faker.random.alphaNumeric(20);
    const title = faker.random.word();
    const message = faker.random.words(5);
    const page = await newSpecPage({
      components: [BsToaster],
      html: `
        <bs-toaster>
          <bs-toast toast-id="${toastId}" toast-title="${title}" content="${message}" />
        </bs-toaster>`,
    });
    const component = page.root.querySelector('.bs-toaster');
    expect(queryByText(component, title));
    expect(queryByText(component, message));
  });
});
//# sourceMappingURL=bs-toaster.spec.js.map
