From f005928d33998591810035027ef22509a5abfe18 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 7 Mar 2013 19:59:06 -0800 Subject: [PATCH] test minified script for good measure --- Makefile | 10 ++++++++-- test/test.js | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 22aa871..5d34710 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ -minify: +minify: real-minify test-minified + +real-minify: strftime.js rm -f strftime-min.js closure |strftime-min.js @@ -6,4 +8,8 @@ test: TZ=America/Vancouver node test/test.js TZ=CET node test/test.js -.PHONY: test +test-minified: + TZ=America/Vancouver node test/test.js ../strftime-min.js + TZ=CET node test/test.js ../strftime-min.js + +.PHONY: test test-minified diff --git a/test/test.js b/test/test.js index e9c118c..2aac49a 100755 --- a/test/test.js +++ b/test/test.js @@ -8,7 +8,8 @@ // - look for edge cases var assert = require('assert') - , lib = require('../strftime') + , libFilename = process.argv[2] || '../strftime.js' + , lib = require(libFilename) // Tue, 07 Jun 2011 18:51:45 GMT , Time = new Date(1307472705067)