Update date_format-test.js
This commit is contained in:
@@ -39,6 +39,12 @@ vows.describe('date_format').addBatch({
|
|||||||
dateFormat.asString(dateFormat.ABSOLUTETIME_FORMAT, date),
|
dateFormat.asString(dateFormat.ABSOLUTETIME_FORMAT, date),
|
||||||
'14:31:30.005'
|
'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);
|
}).export(module);
|
||||||
|
|||||||
Reference in New Issue
Block a user