From db04cf032bcff7362b238b33450ea35d6bbd43f1 Mon Sep 17 00:00:00 2001 From: comdiv Date: Wed, 2 Dec 2015 17:36:25 +0500 Subject: [PATCH] fix(test): locale in Expire header Closes #1741 --- test/unit/middleware/source_files.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/middleware/source_files.spec.js b/test/unit/middleware/source_files.spec.js index acf675f0c..bdc623ebf 100644 --- a/test/unit/middleware/source_files.spec.js +++ b/test/unit/middleware/source_files.spec.js @@ -110,7 +110,7 @@ describe('middleware.source_files', function () { }) it('should send no-caching headers for js source files without timestamps', function () { - var ZERO_DATE = (new Date(0)).toString() + var ZERO_DATE = new RegExp(new Date(0).toString().substring(0, 33).replace(/\+/, '\\+')) servedFiles([ new File('/src/some.js')