diff --git a/test/Gruntfile.js b/test/Gruntfile.js index 7180d52..a98d190 100644 --- a/test/Gruntfile.js +++ b/test/Gruntfile.js @@ -16,6 +16,11 @@ module.exports = function(grunt) { , replacement: function(match) { return match.toLowerCase(); } , path: 'test.txt' } + , test4: { + pattern: /Y/g + , replacement: 'Z' + , path: 'test.txt' + } } }); diff --git a/test/test.js b/test/test.js index a958ffd..b5cfd94 100644 --- a/test/test.js +++ b/test/test.js @@ -6,8 +6,8 @@ var grunt = require('grunt') , opts = { gruntfile: path.join(testDir, 'Gruntfile.js') } , tasks = ['sed'] , testFilePath = path.join(testDir, 'test.txt') - , input = ['search', '12-21-2012', 'LOWERCASE'].join('\n') - , output = ['replace', '12-21-endOfWorld', 'lowercase'].join('\n') + , input = ['search', '12-21-2012', 'LOWERCASE', 'YY'].join('\n') + , output = ['replace', '12-21-endOfWorld', 'lowercase', 'ZZ'].join('\n') fs.writeFileSync(testFilePath, input);