mirror of
https://github.com/robertkrimen/otto.git
synced 2025-12-24 12:58:05 +08:00
@@ -138,7 +138,7 @@ func TestDate_now(t *testing.T) {
|
||||
test := runTest()
|
||||
time := Time.Now()
|
||||
test(`(""+Date.now()).substr(0, 10)`, strconv.FormatInt(epochToInteger(timeToEpoch(time)), 10)[:10])
|
||||
test(`Date.now() === Date.now(1,2,3)`, "true")
|
||||
test(`Date.now() - Date.now(1,2,3) < 24 * 60 * 60`, "true")
|
||||
}
|
||||
|
||||
func TestDate_toISOString(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user