Update date_format-test.js

This commit is contained in:
wood1986 2013-08-15 22:29:52 +08:00
parent 5755faa7bb
commit 5a167d853a

View File

@ -39,6 +39,12 @@ vows.describe('date_format').addBatch({
dateFormat.asString(dateFormat.ABSOLUTETIME_FORMAT, date),
'14:31:30.005'
);
},
'should provide a custom format': function(date) {
assert.equal(
dateFormat.asString("O.SSS.ss.mm.hh.dd.MM.yy", date),
'+1100.005.30.31.14.11.01.10'
);
}
}
}).export(module);