prabhjyotsingh commented on code in PR #3801:
URL: https://github.com/apache/ambari/pull/3801#discussion_r1701286526
##########
ambari-web/test/views/main/service/info/metrics_view_test.js:
##########
@@ -214,19 +217,18 @@ describe('App.MainServiceInfoMetricsView', function() {
mock.sortable.restore();
});
- it("on() should be called", function() {
+ it("MutationObserver callback should be called", function() {
view.makeSortable('#widget_layout');
- expect(mock.on.calledWith('DOMNodeInserted',
'#widget_layout')).to.be.true;
- });
+ const observer = new MutationObserver(mock.callback);
Review Comment:
Thank you for the suggestion, hopefully this should work consistently on
phantomjs-2+
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]