Tuesday, June 30, 2020
Thursday, June 25, 2020
Saturday, June 13, 2020
Thursday, June 11, 2020
Tuesday, June 2, 2020
Sunday, May 24, 2020
Thursday, May 21, 2020
Sunday, May 3, 2020
Monday, April 27, 2020
Saturday, April 25, 2020
Monday, April 20, 2020
Chapter 16 Input Output | Angular Unit Testing | Jasmine | Karma
Chapter 16 Input Output | Angular Unit Testing | Jasmine | Karma
Sunday, April 19, 2020
chapter 15 - CreateSpy | createSpyObj | spyOn | Angular | unit test
chapter 15 - CreateSpy | createSpyObj | spyOn | Angular | unit test
Wednesday, April 15, 2020
Tuesday, April 14, 2020
Sunday, April 12, 2020
Saturday, April 4, 2020
Thursday, April 2, 2020
Sunday, January 5, 2020
Chapter-10 Debugelement & DOM events
Debugelement is an interface created to work safely across different platforms.
Debugelement creates DebugElement tree that wraps the native elements for platforms, instead of HTML element tree.
The DebugElement associated with the root element of the component.
Debugelement comes with methods and properties that are useful for testing.
nativeElement property returns us platform specific object.
triggerEventHandler will help us to execute the DOM events
Sunday, December 29, 2019
Tuesday, December 24, 2019
Chapter-8 Angular Jasmine SpyOn
- Jasmine Spies help us to mock the execution of the method / function.
- It’s a easy way to check a method was called or not, without leaving Subject Under Test(SUT).
- We can chain the spyOn method to get dummy return value using .and.returnvalue()
- spyOn can call the original function using .and.callThrough().
Subscribe to:
Posts (Atom)