Permalink
Browse files

fix(code example): fix to the manually handling lifecycle example (#82)

I was trying to following this example and it wasn't working. Looking at the other examples in the guide it appears you need to pass in the bootstrap method when you call `component.create()`.
  • Loading branch information...
jachin authored and EisenbergEffect committed Feb 15, 2018
1 parent 63d26a1 commit b0fb939fa40f1067ac72d84c7775088f8b8068a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/article/en-US/testing-components.md
@@ -128,7 +128,7 @@ When testing a component sometimes you want to have tests run at certain points
it('can manually handle lifecycle', done => {
let nameElement;
component.manuallyHandleLifecycle().create()
component.manuallyHandleLifecycle().create(bootstrap)
.then(() => {
nameElement = document.querySelector('.name');
expect(nameElement.innerHTML).toBe(' ');

0 comments on commit b0fb939

Please sign in to comment.