Added the test case for empty string.
This commit is contained in:
parent
c2b1b53016
commit
b6f3c78772
1 changed files with 5 additions and 0 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
describe('Kiwi.compose', function() {
|
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() {
|
it('should return the input string',function() {
|
||||||
var input = "text without interpolation";
|
var input = "text without interpolation";
|
||||||
expect(Kiwi.compose(input)).toEqual(input);
|
expect(Kiwi.compose(input)).toEqual(input);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue