How to use the timezone-mock.unregister function in timezone-mock

To help you get started, we’ve selected a few timezone-mock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gitlabhq / gitlabhq / spec / frontend / vue_shared / components / date_time_picker / date_time_picker_lib_spec.js View on Github external
({ val, locatTimezone, utc, result }) => {
          timezoneMock.register(locatTimezone);

          expect(isoDateToInputString(val, utc)).toBe(result);

          timezoneMock.unregister();
        },
      );

timezone-mock

A JavaScript library to mock the local timezone.

MIT
Latest version published 2 years ago

Package Health Score

58 / 100
Full package analysis

Popular timezone-mock functions