aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/_lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/date-fns/esm/_lib/test')
-rw-r--r--node_modules/date-fns/esm/_lib/test/index.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/date-fns/esm/_lib/test/index.js b/node_modules/date-fns/esm/_lib/test/index.js
deleted file mode 100644
index 6193684..0000000
--- a/node_modules/date-fns/esm/_lib/test/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import addLeadingZeros from "../addLeadingZeros/index.js";
-import { setDefaultOptions } from "../defaultOptions/index.js";
-export function assertType(_) {}
-export function resetDefaultOptions() {
- setDefaultOptions({});
-}
-
-// This makes sure we create the consistent offsets across timezones, no matter where these tests are ran.
-export function generateOffset(originalDate) {
- // Add the timezone.
- var offset = '';
- var tzOffset = originalDate.getTimezoneOffset();
- if (tzOffset !== 0) {
- var absoluteOffset = Math.abs(tzOffset);
- var hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2);
- var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2);
- // If less than 0, the sign is +, because it is ahead of time.
- var sign = tzOffset < 0 ? '+' : '-';
- offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset);
- } else {
- offset = 'Z';
- }
- return offset;
-} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage