Merge "Unit test for Fix navigate back to change page with '[' on first diff"

This commit is contained in:
Milutin Kristofic
2020-10-22 10:37:17 +00:00
committed by Gerrit Code Review

View File

@@ -652,9 +652,11 @@ suite('gr-diff-view tests', () => {
PARENT), 'Should navigate to /c/42/1/chell.go');
element._path = 'chell.go';
changeNavStub.reset();
MockInteractions.pressAndReleaseKeyOn(element, 219, null, '[');
assert(changeNavStub.lastCall.calledWithExactly(element._change, '1',
PARENT), 'Should navigate to /c/42/1');
assert.isTrue(changeNavStub.calledOnce);
});
test('edit should redirect to edit page', done => {