mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-06 12:30:10 +08:00
Update fromnow-tests.ts
This commit is contained in:
1 parent
99dd7809c6
commit
596756140d
1 file changed
+5
-1
@@ -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