summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRaghu Nayyar <hey@raghunayyar.com>2015-08-31 00:14:07 +0200
committerRaghu Nayyar <hey@raghunayyar.com>2015-08-31 00:14:07 +0200
commitc6053daf43397e39fb6e15317f1539a51a223e83 (patch)
tree1fd838f85250f8c2a3395c35c3fb5575c14e1011 /apps
parent468bde67ff310d097b79e52a69001988554a562b (diff)
downloadnextcloud-server-c6053daf43397e39fb6e15317f1539a51a223e83.tar.gz
nextcloud-server-c6053daf43397e39fb6e15317f1539a51a223e83.zip
Fixes failing tests
Diffstat (limited to 'apps')
-rw-r--r--apps/files/tests/js/mainfileinfodetailviewSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/tests/js/mainfileinfodetailviewSpec.js b/apps/files/tests/js/mainfileinfodetailviewSpec.js
index 582824585b5..3d78312c86e 100644
--- a/apps/files/tests/js/mainfileinfodetailviewSpec.js
+++ b/apps/files/tests/js/mainfileinfodetailviewSpec.js
@@ -55,8 +55,8 @@ describe('OCA.Files.MainFileInfoDetailView tests', function() {
var clock = sinon.useFakeTimers(Date.UTC(2015, 6, 17, 1, 2, 0, 3));
var dateExpected = OC.Util.formatDate(Date(Date.UTC(2015, 6, 17, 1, 2, 0, 0)));
view.setFileInfo(testFileInfo);
- expect(view.$el.find('.fileName').text()).toEqual('One.txt');
- expect(view.$el.find('.fileName').attr('title')).toEqual('One.txt');
+ expect(view.$el.find('.fileName h3').text()).toEqual('One.txt');
+ expect(view.$el.find('.fileName h3').attr('title')).toEqual('One.txt');
expect(view.$el.find('.size').text()).toEqual('117.7 MB');
expect(view.$el.find('.size').attr('title')).toEqual('123456789 bytes');
expect(view.$el.find('.date').text()).toEqual('a few seconds ago');
@@ -110,8 +110,8 @@ describe('OCA.Files.MainFileInfoDetailView tests', function() {
testFileInfo.set('displayName', 'hello.txt');
view.setFileInfo(testFileInfo);
- expect(view.$el.find('.fileName').text()).toEqual('hello.txt');
- expect(view.$el.find('.fileName').attr('title')).toEqual('hello.txt');
+ expect(view.$el.find('.fileName h3').text()).toEqual('hello.txt');
+ expect(view.$el.find('.fileName h3').attr('title')).toEqual('hello.txt');
});
it('rerenders when changes are made on the model', function() {
view.setFileInfo(testFileInfo);