flake8
passed.
JSHint
passed.
Review Request #9162 — Created Aug. 30, 2017 and submitted
This converts the JavaScript unit tests for
RB.DiffViewerPageViewand
RB.ReviewablePageViewto ES6, in preparation for a new set of tests
coming in.The tests for
RB.ReviewRequestPageViewhave been fixed to use
function() {}instead of() => {}for Jasmine tests, since the
former is recommended (due to Jasmine populatingthiswith state, and
the ability for test suites to store their own local state in Jasmine's
this). It also fixes a variable name (pagetopageView), which
will help with future tests.
All unit tests pass.