var replace = require( "../src/str-replace" );

module.exports = {
  replace_all: function( assert ) {
    var actual = replace.all( "/" ).from( "/home/dir" ).to( "\\" );
    var expected = "\\home\\dir";
    assert.strictEqual( actual, expected );
    assert.done();
  },
  replace_all_ignoring_case: function( assert ) {
    var actual = replace.all( "G" ).ignoreCase()
      .from( "Eggs" )
      .to( "f" );
    var expected = "Effs";
    assert.strictEqual( actual, expected );
    assert.done();
  }
};

var replace = require( "../src/str-replace" );

module.exports = {
  replace_all: function( assert ) {
    var actual = replace
      .all( "/" )
      .from( "/home/dir" )
      .to( "\\" );
    var expected = "\\home\\dir";
    assert.strictEqual( actual, expected );
    assert.done();
  },
  replace_all_ignoring_case: function( assert ) {
    var actual = replace
      .all( "G" )
        .ignoreCase()
      .from( "Eggs" )
      .to( "f" );
    var expected = "Effs";
    assert.strictEqual( actual, expected );
    assert.done();
  }
};

Create a proper identation for the tests
Create a proper identation for the tests
