mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
test minified script for good measure
This commit is contained in:
parent
2796149127
commit
f005928d33
2 changed files with 10 additions and 3 deletions
10
Makefile
10
Makefile
|
|
@ -1,4 +1,6 @@
|
|||
minify:
|
||||
minify: real-minify test-minified
|
||||
|
||||
real-minify: strftime.js
|
||||
rm -f strftime-min.js
|
||||
closure <strftime.js >|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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue