'use strict';

var formatter = require('../../../src/helpers/stringFormatter');

describe('String formatter Unit Test', function() {
  it('should return same string when no replacements are made', function() {
    expect(formatter.format('Hello world!')).toEqual('Hello world!');
  });

  it('should return same string when replacements are made', function() {
    expect(formatter.format('Hello {name}!', { name: 'world' })).toEqual('Hello world!');
  });
});

@@ -449,13 +449,184 @@
 );%0A  %7D);
+%0A%0A  it('should return string with no replacements of value is not supplied', function() %7B%0A    expect(formatter.format('Hello %7Bname%7D!', %7B%7D)).toEqual('Hello %7Bname%7D!');%0A  %7D);
 %0A%7D);%0A

Add additional test for stringFormatter.js closes#19