import { newSpecPage } from '@stencil/core/testing';
import { BsLoader } from '../../bs-loader/bs-loader';
const TEXT = 'Loading';
describe('bs-loader', () => {
  it('renders hidden text', async () => {
    const page = await newSpecPage({
      components: [BsLoader],
      html: `<bs-loader></bs-loader>`,
    });
    expect(page.root).toEqualText(TEXT);
  });
  it('handles the size prop by setting data-size', async () => {
    const page = await newSpecPage({
      components: [BsLoader],
      html: `<bs-loader size="lg"></bs-loader>`,
    });
    const component = page.root;
    expect(component.getAttribute('data-size')).toBe("lg");
    component.size = "md";
    await page.waitForChanges();
    expect(component.getAttribute('data-size')).toBe("md");
    component.size = "sm";
    await page.waitForChanges();
    expect(component.getAttribute('data-size')).toBe("sm");
    component.size = undefined;
    await page.waitForChanges();
    expect(component.getAttribute('data-size')).toBeFalsy();
  });
});
//# sourceMappingURL=bs-loader.spec.js.map
