Writing Unit-tests for JS components
- this.pConn should be mocked
- PCore should be mocked if needed
- please test the following methods:
- init()
- update(pConn)
- updateSelf()
- fieldOnChange(value, event)
- fieldOnBlur(value,event)
- onEvent(event)
- test interactions with this.componentManager
- test interactions with this.pConn
- test interactions with PCore (if needed)
- evaluate props sent in onComponentPropsUpdate() method of componentManager in one test if resonable