Skip to content

Commit 003442e

Browse files
committed
fix: expected datetime in tests
1 parent 49808e2 commit 003442e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/json_spec.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ describe("crate", function()
2323
month = 2,
2424
day = 3,
2525
hour = 6,
26-
minute = 17,
27-
second = 14,
26+
min = 17,
27+
sec = 14,
2828
}),
2929
updated = DateTime.new(os.time {
3030
year = 2022,
3131
month = 2,
3232
day = 14,
3333
hour = 8,
34-
minute = 37,
35-
second = 47,
34+
min = 37,
35+
sec = 47,
3636
}),
3737
downloads = 121616874,
3838
homepage = "https://rust-random.github.io/book",
@@ -86,8 +86,8 @@ describe("versions", function()
8686
month = 2,
8787
day = 14,
8888
hour = 8,
89-
minute = 37,
90-
second = 47,
89+
min = 37,
90+
sec = 47,
9191
})
9292
}, versions[1])
9393

@@ -103,8 +103,8 @@ describe("versions", function()
103103
month = 4,
104104
day = 1,
105105
hour = 16,
106-
minute = 31,
107-
second = 9,
106+
min = 31,
107+
sec = 9,
108108
})
109109
}, versions[2])
110110

@@ -120,8 +120,8 @@ describe("versions", function()
120120
month = 2,
121121
day = 3,
122122
hour = 6,
123-
minute = 17,
124-
second = 14,
123+
min = 17,
124+
sec = 14,
125125
})
126126
}, versions[3])
127127
end)

0 commit comments

Comments
 (0)