diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-28 01:07:11 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-27 16:07:11 -0700 |
| commit | ce101a0f8632f6b5390af247f3df2002e86becdf (patch) | |
| tree | 5232eb3cbd21c8773881327f98162f0567dfe543 /datetime/test.ts | |
| parent | 8d49022ef67b590d8ee7b3ff984307b6c0a69d4f (diff) | |
http: Cookie improvements (denoland/deno_std#359)
Original: https://github.com/denoland/deno_std/commit/f1114691038888fc3d8995b64a8028f072569672
Diffstat (limited to 'datetime/test.ts')
| -rw-r--r-- | datetime/test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/datetime/test.ts b/datetime/test.ts index 95bcd3653..f47914728 100644 --- a/datetime/test.ts +++ b/datetime/test.ts @@ -74,3 +74,12 @@ test(function DayOfYear(): void { test(function currentDayOfYear(): void { assertEquals(datetime.currentDayOfYear(), datetime.dayOfYear(new Date())); }); + +test({ + name: "[DateTime] to IMF", + fn(): void { + const actual = datetime.toIMF(new Date(Date.UTC(1994, 3, 5, 15, 32))); + const expected = "Tue, 05 May 1994 15:32:00 GMT"; + assertEquals(actual, expected); + } +}); |
