Skip to content

Instantly share code, notes, and snippets.

@fstbraz
Last active August 31, 2022 15:04
Show Gist options
  • Save fstbraz/5d0cbe3cbcdc7c0644678276a537fe8a to your computer and use it in GitHub Desktop.
Save fstbraz/5d0cbe3cbcdc7c0644678276a537fe8a to your computer and use it in GitHub Desktop.
cross-framework-web-components-5
...
import { assert, expect, fixture, html } from '@open-wc/testing';
describe('Card Component', () => {
...
beforeEach(async () => {
el = await fixture<Card>(html` <card-image .card=${card}></card-image> `);
});
it('is defined', () => {
assert.instanceOf(el, Card);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment