'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!');
  });
});

'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!');
  });

  it('should return string with no replacements of value is not supplied', function() {
    expect(formatter.format('Hello {name}!', {})).toEqual('Hello {name}!');
  });
});

Add additional test for stringFormatter.js closes#19