Update date_format-test.js

This commit is contained in:
wood1986 2013-08-15 22:30:57 +08:00
parent 5a167d853a
commit 9e72189574

View File

@ -41,9 +41,10 @@ vows.describe('date_format').addBatch({
);
},
'should provide a custom format': function(date) {
date.getTimezoneOffset = function() { return 120; };
assert.equal(
dateFormat.asString("O.SSS.ss.mm.hh.dd.MM.yy", date),
'+1100.005.30.31.14.11.01.10'
'-0200.005.30.31.14.11.01.10'
);
}
}