Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/tests/specs/jquery.avatarSpec.js')
-rw-r--r--core/js/tests/specs/jquery.avatarSpec.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/js/tests/specs/jquery.avatarSpec.js b/core/js/tests/specs/jquery.avatarSpec.js
index 4e13b7f26ff..420c72d2e9b 100644
--- a/core/js/tests/specs/jquery.avatarSpec.js
+++ b/core/js/tests/specs/jquery.avatarSpec.js
@@ -38,8 +38,8 @@ describe('jquery.avatar tests', function() {
it('undefined', function() {
$div.avatar('foo');
- expect($div.height()).toEqual(64);
- expect($div.width()).toEqual(64);
+ expect(Math.round($div.height())).toEqual(64);
+ expect(Math.round($div.width())).toEqual(64);
});
it('undefined but div has height', function() {
@@ -49,8 +49,8 @@ describe('jquery.avatar tests', function() {
expect(window.Image).toHaveBeenCalled();
window.Image().onerror();
- expect($div.height()).toEqual(9);
- expect($div.width()).toEqual(9);
+ expect(Math.round($div.height())).toEqual(9);
+ expect(Math.round($div.width())).toEqual(9);
});
it('undefined but data size is set', function() {
@@ -60,8 +60,8 @@ describe('jquery.avatar tests', function() {
expect(window.Image).toHaveBeenCalled();
window.Image().onerror();
- expect($div.height()).toEqual(10);
- expect($div.width()).toEqual(10);
+ expect(Math.round($div.height())).toEqual(10);
+ expect(Math.round($div.width())).toEqual(10);
});
@@ -71,8 +71,8 @@ describe('jquery.avatar tests', function() {
expect(window.Image).toHaveBeenCalled();
window.Image().onerror();
- expect($div.height()).toEqual(8);
- expect($div.width()).toEqual(8);
+ expect(Math.round($div.height())).toEqual(8);
+ expect(Math.round($div.width())).toEqual(8);
});
});