'use strict';

var grunt = require('grunt');
var fs = require('fs');

exports.fileReplace = {
  setUp: function (done) {
    // setup here if necessary
    done();
  },
  patterns: function (test) {
    test.expect(2);

    var actual = grunt.file.read('./test/fixtures/123');
    var expected = grunt.file.read('./test/expected/local');
    var expected2 = grunt.file.read('./test/expected/remote');

    setTimeout(function(){
      test.equal(actual, expected, 'Local file should be copied.');
      test.equal(actual, expected2, 'Remote file should be copied.');
      fs.unlinkSync('./test/expected/local');
      fs.unlinkSync('./test/expected/remote');
      test.done();
    }, 1000);

  }
};

@@ -399,37 +399,8 @@
 );%0A%0A
-    setTimeout(function()%7B%0A  
     
@@ -457,26 +457,24 @@
  copied.');%0A
-  
     test.equ
@@ -525,26 +525,24 @@
  copied.');%0A
-  
     fs.unlin
@@ -577,18 +577,16 @@
 ');%0A    
-  
 fs.unlin
@@ -622,18 +622,16 @@
 ');%0A    
-  
 test.don
@@ -638,22 +638,8 @@
 e();
-%0A    %7D, 1000);
 %0A%0A  

remove timeout from tests