diff --git a/tests/unit/functions/calendar_spec.js b/tests/unit/functions/calendar_spec.js
index 4d821a62..e1d44e4a 100644
--- a/tests/unit/functions/calendar_spec.js
+++ b/tests/unit/functions/calendar_spec.js
@@ -120,5 +120,11 @@ describe("Functions into modules/default/calendar/calendar.js", function () {
"This is a wrapEvent
test. Should wrap the string
instead of shorten it if called
with wrapEvent = true"
);
});
+
+ it("should wrap and shorten the string in the second line if called with wrapEvents = true and maxTitleLines = 2", function () {
+ expect(Module.definitions.calendar.shorten("This is a wrapEvent and maxTitleLines test. Should wrap and shorten the string in the second line if called with wrapEvents = true and maxTitleLines = 2", undefined, true, 2)).to.equal(
+ "This is a wrapEvent and
maxTitleLines test. Should wrap and …"
+ );
+ });
});
});