deno.land / x / esm@v135_2 / test / issue-581 / issue-581.test.ts

issue-581.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { assertEquals } from "https://deno.land/std@0.180.0/testing/asserts.ts";
import dayjs from "http://localhost:8080/dayjs@1.11.7";import relativeTime from "http://localhost:8080/dayjs@1.11.7/plugin/relativeTime.js";
dayjs.extend(relativeTime);
Deno.test("issue #581", async () => { assertEquals(dayjs(Date.now() - 3 * 1000).fromNow(), "a few seconds ago");});
esm

Version Info

Tagged at
a year ago