-
Notifications
You must be signed in to change notification settings - Fork 290
Open
Description
In angular-2-samples/unit-test-scenarios/event-emitter/event-emitter-spec.ts folder, can you explain the code there?
My understand about your code would be: you called the function sayHello() in the code manually.
- why don't you use mouse event function like click(). Of course, I don't know if there is such click function exist.
- why put child.sayHello(); after child.greeting.subscribe()?
- Can you explain how the done function work here? Is there any other way to handle asyn problem. I have heard that angular2 make it more easier to deal with the problem.
- When I looked at your blog: http://www.syntaxsuccess.com/viewarticle/angular-2.0-unit-testing. I still have some questions. Can you recommend me some reference to learn Angular2 an Angular2 unit testing?
Metadata
Metadata
Assignees
Labels
No labels