mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-22 13:40:40 +08:00
Make test suite nicer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user