From 6820b0fbe3f7400fdb283c741ef88b6d8e2d4994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Sun, 22 Feb 2015 22:12:22 +0100 Subject: [PATCH] Pick test dates far in the future Fixes the test that checks if `ncp` correctly compares `mtime`s in order to copy newer files over. The added benefit of this change is that all the current maintainers will be long dead by the time this commit becomes a problem again. --- test/ncp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ncp.js b/test/ncp.js index bc6df22..ffe1244 100644 --- a/test/ncp.js +++ b/test/ncp.js @@ -184,14 +184,14 @@ describe('ncp', function () { }); it('change source file mtime and copy', function(cb) { - fs.utimesSync(src+"/a", new Date().getTime()/1000, new Date('2015-01-01 00:00:00').getTime()/1000); + fs.utimesSync(src+"/a", new Date().getTime()/1000, new Date('2099-01-01 00:00:00').getTime()/1000); ncp(src, out, {modified: true, clobber: false}, function (err) { fs.stat(out+"/a", function(err, stats) { - assert.equal(stats.mtime.getTime(), new Date('2015-01-01 00:00:00').getTime()); + assert.equal(stats.mtime.getTime(), new Date('2099-01-01 00:00:00').getTime()); cb(); }); }); }); }); -}); \ No newline at end of file +});