diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-04 10:37:16 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-11-07 14:31:39 +0100 |
commit | 32625aff3017ba183487d3688a620ce416b73408 (patch) | |
tree | 7306596194acd35abc7a75c78cab4a3540c6455e | |
parent | 2fb1ed84f24fe047d33703b4ce07469a1fc17487 (diff) | |
download | nextcloud-server-32625aff3017ba183487d3688a620ce416b73408.tar.gz nextcloud-server-32625aff3017ba183487d3688a620ce416b73408.zip |
JS unit tests fix - use toBeUndefined() instead of toEqual(null)
-rw-r--r-- | apps/files/tests/js/filelistSpec.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index 65a89ef85cd..86ba4d41df9 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -218,13 +218,13 @@ describe('OCA.Files.FileList tests', function() { expect($tr).toBeDefined(); expect($tr[0].tagName.toLowerCase()).toEqual('tr'); - expect($tr.attr('data-id')).toEqual(null); + expect($tr.attr('data-id')).toBeUndefined(); expect($tr.attr('data-type')).toEqual('file'); expect($tr.attr('data-file')).toEqual('testFile.txt'); - expect($tr.attr('data-size')).toEqual(null); - expect($tr.attr('data-etag')).toEqual(null); + expect($tr.attr('data-size')).toBeUndefined(); + expect($tr.attr('data-etag')).toBeUndefined(); expect($tr.attr('data-permissions')).toEqual('31'); - expect($tr.attr('data-mime')).toEqual(null); + expect($tr.attr('data-mime')).toBeUndefined(); expect($tr.attr('data-mtime')).toEqual('123456'); expect($tr.find('.filesize').text()).toEqual('Pending'); @@ -239,11 +239,11 @@ describe('OCA.Files.FileList tests', function() { expect($tr).toBeDefined(); expect($tr[0].tagName.toLowerCase()).toEqual('tr'); - expect($tr.attr('data-id')).toEqual(null); + expect($tr.attr('data-id')).toBeUndefined(); expect($tr.attr('data-type')).toEqual('dir'); expect($tr.attr('data-file')).toEqual('testFolder'); - expect($tr.attr('data-size')).toEqual(null); - expect($tr.attr('data-etag')).toEqual(null); + expect($tr.attr('data-size')).toBeUndefined(); + expect($tr.attr('data-etag')).toBeUndefined(); expect($tr.attr('data-permissions')).toEqual('31'); expect($tr.attr('data-mime')).toEqual('httpd/unix-directory'); expect($tr.attr('data-mtime')).toEqual('123456'); |