Make test suite nicer

This commit is contained in:
Vit Brunner
2014-10-12 17:27:25 +02:00
parent c2a6f9601e
commit b3f8eaccbb
8 changed files with 272 additions and 247 deletions
@@ -9,7 +9,7 @@ angular.module("sideBySide").factory("transformer", () ->
#
# @param translations [array] Translations to check
checkLengths = (translations) ->
if translations.length < 1
if !translations or translations.length < 1
throw "No poems found!"
lengths = []
for translation in translations