Fix lint errors
Change-Id: I71e0c481c4408058dd48b6295876d7b952cdbd38
This commit is contained in:
parent
4dc0da639e
commit
e6bb34fbf0
polygerrit-ui/app/elements
change/gr-file-list
diff/gr-diff-builder
settings/gr-settings-view
@ -393,7 +393,7 @@ limitations under the License.
|
|||||||
'1d');
|
'1d');
|
||||||
assert.equal(
|
assert.equal(
|
||||||
element._computeCountString(comments, '1',
|
element._computeCountString(comments, '1',
|
||||||
'file_added_in_rev2.txt', 'comment'),'');
|
'file_added_in_rev2.txt', 'comment'), '');
|
||||||
assert.equal(
|
assert.equal(
|
||||||
element._computeCommentsStringMobile(comments, '1',
|
element._computeCommentsStringMobile(comments, '1',
|
||||||
'file_added_in_rev2.txt'), '');
|
'file_added_in_rev2.txt'), '');
|
||||||
|
@ -575,7 +575,7 @@
|
|||||||
return group.type === GrDiffGroup.Type.DELTA &&
|
return group.type === GrDiffGroup.Type.DELTA &&
|
||||||
(!group.adds.length || !group.removes.length) &&
|
(!group.adds.length || !group.removes.length) &&
|
||||||
!(!group.adds.length && !group.removes.length);
|
!(!group.adds.length && !group.removes.length);
|
||||||
}
|
};
|
||||||
|
|
||||||
window.GrDiffBuilder = GrDiffBuilder;
|
window.GrDiffBuilder = GrDiffBuilder;
|
||||||
})(window, GrDiffGroup, GrDiffLine);
|
})(window, GrDiffGroup, GrDiffLine);
|
||||||
|
@ -387,7 +387,8 @@ limitations under the License.
|
|||||||
test('show-alert is fired when email is confirmed', function(done) {
|
test('show-alert is fired when email is confirmed', function(done) {
|
||||||
sandbox.spy(element, 'fire');
|
sandbox.spy(element, 'fire');
|
||||||
element._loadingPromise.then(function() {
|
element._loadingPromise.then(function() {
|
||||||
assert.isTrue(element.fire.calledWith('show-alert', {message: 'bar'}));
|
assert.isTrue(
|
||||||
|
element.fire.calledWith('show-alert', {message: 'bar'}));
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
resolveConfirm('bar');
|
resolveConfirm('bar');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user