Skip to content

Instantly share code, notes, and snippets.

@nerdic-coder
Created April 25, 2018 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nerdic-coder/8169f4ab271f7c11a9b0d1bbc68f91ac to your computer and use it in GitHub Desktop.
Save nerdic-coder/8169f4ab271f7c11a9b0d1bbc68f91ac to your computer and use it in GitHub Desktop.
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