mirror of
https://github.com/robertkrimen/otto
synced 2025-10-19 19:55:30 +08:00
parent
805a4c27b1
commit
7cd78b3a28
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user