Created
December 17, 2022 22:14
-
-
Save bobbyg603/20819a26148021e5cd379cd28e44f17d to your computer and use it in GitHub Desktop.
How to Build a Web Component
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
test('renders card with header and subheader', async () => { | |
const header = '🧑'; | |
const subheader = '👶'; | |
const el = await fixture(html`<medium-card .header="${header}" .subheader="${subheader}"></medium-card>`); | |
const headerElement = el.shadowRoot?.querySelector('medium-card-header') as MediumCardHeaderElement; | |
assert.equal(headerElement?.header, header); | |
assert.equal(headerElement?.subheader, subheader); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment