From b6f3c787725727da57ad1752112252ad28b6c1d6 Mon Sep 17 00:00:00 2001 From: Ziang Song Date: Fri, 15 Feb 2013 12:53:39 -0500 Subject: [PATCH] Added the test case for empty string. --- spec/KiwiSpec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/KiwiSpec.js b/spec/KiwiSpec.js index b3107ae..41742e9 100644 --- a/spec/KiwiSpec.js +++ b/spec/KiwiSpec.js @@ -1,4 +1,9 @@ describe('Kiwi.compose', function() { + it('should return the empty when input is empty',function() { + var input = ""; + expect(Kiwi.compose(input)).toEqual(input); + }); + it('should return the input string',function() { var input = "text without interpolation"; expect(Kiwi.compose(input)).toEqual(input);