test: coverage to 100%

This commit is contained in:
Harttle
2021-12-07 23:34:53 +08:00
committed by Harttle
parent 6c114267a5
commit 69286c6909
6 changed files with 62 additions and 25 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* The date interface LiquidJS uses.
* Basically a subset of JavaScript Date,
* it's defined abstractly here to allow different implementation
*/
export interface LiquidDate {
getTime(): number;
getMilliseconds(): number;
getSeconds(): number;
getMinutes(): number;
getHours(): number;
getDay(): number;
getDate(): number;
getMonth(): number;
getFullYear(): number;
getTimezoneOffset(): number;
toLocaleTimeString(): string;
toLocaleDateString(): string;
}