We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a91d396 commit 75cef47Copy full SHA for 75cef47
packages/tests/unit/values/datetime.test.ts
@@ -3,13 +3,6 @@ import { DateTime } from "../../../sdk/src/value/datetime";
3
import { Duration } from "../../../sdk/src/value/duration";
4
5
describe("DateTime", () => {
6
- test("constructor with no arguments (current time)", () => {
7
- const dt = new DateTime();
8
- const now = new Date();
9
- const diff = Math.abs(dt.milliseconds - now.valueOf());
10
- expect(diff).toBeLessThanOrEqual(7);
11
- });
12
-
13
test("constructor with Date object", () => {
14
const date = new Date("2023-12-25T10:30:00.123Z");
15
const dt = new DateTime(date);
0 commit comments