Add tests.

This commit is contained in:
Lars Jung 2015-04-24 19:59:51 +02:00
parent 908c49c584
commit c632cc6dea
2 changed files with 95 additions and 3 deletions

View file

@ -164,7 +164,8 @@ modulejs.define('model/item', ['_', 'core/event', 'core/location', 'core/server'
isCurrentParentFolder: function () {
return this === getItem(location.getAbsHref()).parent;
var item = getItem(location.getAbsHref());
return Boolean(item) && this === item.parent;
},
isDomain: function () {