#9 Unit tests

This commit is contained in:
Denys Vuika
2016-05-09 14:40:01 +01:00
parent 2f30ae687b
commit c5b2bc812c
19 changed files with 252 additions and 20 deletions

View File

@@ -31,7 +31,7 @@ export class FolderActionsService {
getHandler(key: string): ContentActionHandler {
if (key) {
let lkey = key.toLowerCase();
return this.handlers[lkey];
return this.handlers[lkey] || null;
}
return null;
}