mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Update fromnow-tests.ts
This commit is contained in:
@@ -6,6 +6,10 @@ function dateOnly() {
|
||||
fromnow( '2015-12-31' );
|
||||
}
|
||||
|
||||
function dateObjectOnly() {
|
||||
fromnow( new Date() );
|
||||
}
|
||||
|
||||
function maxChunks() {
|
||||
fromnow( '2015-12-31', {
|
||||
maxChunks: 12
|
||||
@@ -22,4 +26,4 @@ function useAnd() {
|
||||
fromnow( '2015-12-31', {
|
||||
useAnd: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user