From b9ccb7a892f24467be68dc3ebe7a7aa619044170 Mon Sep 17 00:00:00 2001 From: rejas Date: Wed, 15 Jul 2020 13:15:03 +0200 Subject: [PATCH] Add new test to see if coverage improves it does :-) calendar.js | 8.97 | 9.57 | 11.54 | 8.7 | 63-413,446-659,690-693,699,733-771 -> calendar.js | 9.97 | 10.64 | 11.54 | 9.7 | 63-413,446-659,699,733-771 --- tests/unit/functions/calendar_spec.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 …" + ); + }); }); });