-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc68f8f
commit b7821a1
Showing
6 changed files
with
62 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './stepper'; | ||
export * from './step'; | ||
export * from './step-label'; | ||
export * from './stepper'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import { assert, expect, fixture } from '@open-wc/testing'; | ||
import { html } from 'lit/static-html.js'; | ||
// import { assert, expect, fixture } from '@open-wc/testing'; | ||
// import { html } from 'lit/static-html.js'; | ||
|
||
import { EventSpy, waitForLitRender } from '../../core/testing'; | ||
// import { EventSpy, waitForLitRender } from '../../core/testing'; | ||
|
||
import { SbbStepLabelElement } from './step-label'; | ||
// import { SbbStepLabelElement } from './step-label'; | ||
|
||
describe('sbb-step-label', () => { | ||
let element: SbbStepLabelElement; | ||
// describe('sbb-step-label', () => { | ||
// let element: SbbStepLabelElement; | ||
|
||
beforeEach(async () => { | ||
element = await fixture(html`<sbb-step-label></sbb-step-label>`); | ||
}); | ||
// beforeEach(async () => { | ||
// element = await fixture(html`<sbb-step-label></sbb-step-label>`); | ||
// }); | ||
|
||
it('renders', async () => { | ||
assert.instanceOf(element, SbbStepLabelElement); | ||
}); | ||
// it('renders', async () => { | ||
// assert.instanceOf(element, SbbStepLabelElement); | ||
// }); | ||
|
||
it('emits on click', async () => { | ||
const myEventNameSpy = new EventSpy(SbbStepLabelElement.events.myEventName); | ||
element.click(); | ||
await waitForLitRender(element); | ||
expect(myEventNameSpy.count).to.be.equal(1); | ||
}); | ||
}); | ||
// it('emits on click', async () => { | ||
// const myEventNameSpy = new EventSpy(SbbStepLabelElement.events.myEventName); | ||
// element.click(); | ||
// await waitForLitRender(element); | ||
// expect(myEventNameSpy.count).to.be.equal(1); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { expect, fixture } from '@open-wc/testing'; | ||
import { html } from 'lit/static-html.js'; | ||
import './step-label'; | ||
// import { expect, fixture } from '@open-wc/testing'; | ||
// import { html } from 'lit/static-html.js'; | ||
// import './step-label'; | ||
|
||
describe('sbb-step-label', () => { | ||
it('renders', async () => { | ||
const root = await fixture(html`<sbb-step-label my-prop="Label"></sbb-step-label>`); | ||
// describe('sbb-step-label', () => { | ||
// it('renders', async () => { | ||
// const root = await fixture(html`<sbb-step-label my-prop="Label"></sbb-step-label>`); | ||
|
||
expect(root).dom.to.be.equal(`<sbb-step-label my-prop="Label"></sbb-step-label>`); | ||
// expect(root).dom.to.be.equal(`<sbb-step-label my-prop="Label"></sbb-step-label>`); | ||
|
||
expect(root).shadowDom.to.be.equal(` | ||
<div class="sbb-step-label"> | ||
Label | ||
</div> | ||
`); | ||
}); | ||
}); | ||
// expect(root).shadowDom.to.be.equal(` | ||
// <div class="sbb-step-label"> | ||
// Label | ||
// </div> | ||
// `); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { expect, fixture } from '@open-wc/testing'; | ||
import { html } from 'lit/static-html.js'; | ||
import './step'; | ||
// import { expect, fixture } from '@open-wc/testing'; | ||
// import { html } from 'lit/static-html.js'; | ||
// import './step'; | ||
|
||
describe('sbb-step', () => { | ||
it('renders', async () => { | ||
const root = await fixture(html`<sbb-step my-prop="Label"></sbb-step>`); | ||
// describe('sbb-step', () => { | ||
// it('renders', async () => { | ||
// const root = await fixture(html`<sbb-step my-prop="Label"></sbb-step>`); | ||
|
||
expect(root).dom.to.be.equal(`<sbb-step my-prop="Label"></sbb-step>`); | ||
// expect(root).dom.to.be.equal(`<sbb-step my-prop="Label"></sbb-step>`); | ||
|
||
expect(root).shadowDom.to.be.equal(` | ||
<div class="sbb-step"> | ||
Label | ||
</div> | ||
`); | ||
}); | ||
}); | ||
// expect(root).shadowDom.to.be.equal(` | ||
// <div class="sbb-step"> | ||
// Label | ||
// </div> | ||
// `); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { expect, fixture } from '@open-wc/testing'; | ||
import { html } from 'lit/static-html.js'; | ||
import './stepper'; | ||
// import { expect, fixture } from '@open-wc/testing'; | ||
// import { html } from 'lit/static-html.js'; | ||
// import './stepper'; | ||
|
||
describe('sbb-stepper', () => { | ||
it('renders', async () => { | ||
const root = await fixture(html`<sbb-stepper my-prop="Label"></sbb-stepper>`); | ||
// describe('sbb-stepper', () => { | ||
// it('renders', async () => { | ||
// const root = await fixture(html`<sbb-stepper my-prop="Label"></sbb-stepper>`); | ||
|
||
expect(root).dom.to.be.equal(`<sbb-stepper my-prop="Label"></sbb-stepper>`); | ||
// expect(root).dom.to.be.equal(`<sbb-stepper my-prop="Label"></sbb-stepper>`); | ||
|
||
expect(root).shadowDom.to.be.equal(` | ||
<div class="sbb-stepper"> | ||
Label | ||
</div> | ||
`); | ||
}); | ||
}); | ||
// expect(root).shadowDom.to.be.equal(` | ||
// <div class="sbb-stepper"> | ||
// Label | ||
// </div> | ||
// `); | ||
// }); | ||
// }); |