-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN 228 - Add unit tests for angular controllers #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks good to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To really test killSaveTimer(), startSaveTimer() should be called first since by default scope.saveTimer is null
|
Thanks, Overall looks good. |
|
Happy to see people writing tests after it is been fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is good test functionality of the function, rather only checking is function is define.
In paragraph ctrl you will find lot functions and checking them all will not be easy.
There for you can test for use cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Madhuka. will be adding more tests to check the functionality. this is just an initial test to check for fn defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will file a JIRA for the test coverage grunt task
Author: Renjith Kamath <[email protected]> Closes apache#250 from r-kamath/ZEPPELIN-228 and squashes the following commits: 6735aac [Renjith Kamath] Merge branch 'master' into ZEPPELIN-228 743a13d [Renjith Kamath] ZEPPELIN-228 add tests for paragraph controller and update notebook tests a750a30 [Renjith Kamath] ZEPPELIN-228 add more tests for getCronOptionNameFromValue 48bfb95 [Renjith Kamath] ZEPPELIN-228 add unit tests for controllers (cherry picked from commit 0b47cde) Signed-off-by: Lee moon soo <[email protected]>
No description provided.