Skip to content

Instantly share code, notes, and snippets.

@nerdic-coder
Created April 25, 2018 18:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
hero detials unit tests
import { render } from '@stencil/core/testing';
import { HeroDetails } from './hero-details';
describe('app-hero-details', () => {
it('should build', () => {
expect(new HeroDetails()).toBeTruthy();
});
describe('rendering', () => {
beforeEach(async () => {
await render({
components: [HeroDetails],
html: '<app-hero-details></app-hero-details>'
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment