Skip to content

Instantly share code, notes, and snippets.

@nerdic-coder
Created April 19, 2018 21:50
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/26b8d6776e3f200f30a855c5c86494ee to your computer and use it in GitHub Desktop.
Save nerdic-coder/26b8d6776e3f200f30a855c5c86494ee to your computer and use it in GitHub Desktop.
heroes.spec.ts (initial version)
import { render } from '@stencil/core/testing';
import { Heroes } from './heroes';
describe('app-heroes', () => {
it('should build', () => {
expect(new Heroes()).toBeTruthy();
});
describe('rendering', () => {
beforeEach(async () => {
await render({
components: [Heroes],
html: '<app-heroes></app-heroes>'
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment