@skhemata/skhemata-crowdfunding-campaign
Version:
Skhemata Crowdfunding Campaign Web Component. This web component provides crowdfunding campaign functionality (reward/donation based) for a website.
33 lines (26 loc) • 1.48 kB
JavaScript
;
// import { html, fixture, expect } from '@open-wc/testing';
// import { SkhemataCrowdfundingCampaign } from '../src/SkhemataCrowdfundingCampaign.js';
// import '../skhemata-crowdfunding-campaign.js';
describe('SkhemataCrowdfundingCampaign', () => {
/*
it('has a default title "Hey there" and counter 5', async () => {
const el = await fixture<SkhemataCrowdfundingCampaign>(html`<skhemata-crowdfunding-campaign></skhemata-crowdfunding-campaign>`);
expect(el.title).to.equal('Hey there');
expect(el.counter).to.equal(5);
});
it('increases the counter on button click', async () => {
const el = await fixture<SkhemataCrowdfundingCampaign>(html`<skhemata-crowdfunding-campaign></skhemata-crowdfunding-campaign>`);
el.shadowRoot!.querySelector('button')!.click();
expect(el.counter).to.equal(6);
});
it('can override the title via attribute', async () => {
const el = await fixture<SkhemataCrowdfundingCampaign>(html`<skhemata-crowdfunding-campaign title="attribute title"></skhemata-crowdfunding-campaign>`);
expect(el.title).to.equal('attribute title');
});
it('passes the a11y audit', async () => {
const el = await fixture<SkhemataCrowdfundingCampaign>(html`<skhemata-crowdfunding-campaign></skhemata-crowdfunding-campaign>`);
await expect(el).shadowDom.to.be.accessible();
}); */
});
//# sourceMappingURL=skhemata-crowdfunding-campaign.test.js.map