Skip to content
Snippets Groups Projects
  • jugglinmike's avatar
    cf68c3be
    Correct invalid tests for the Date constructor · cf68c3be
    jugglinmike authored
    The millisecond representation of a given Date instance is dependent on
    the local system's time zone settings. In order to pass consistently
    across contexts, tests for this value must take the system configuration
    into account.
    
    Introduce a test harness utility function to encapsulate these concerns.
    Re-use this function across all test files that assert the exact
    millisecond representation of Date instances.
    cf68c3be
    History
    Correct invalid tests for the Date constructor
    jugglinmike authored
    The millisecond representation of a given Date instance is dependent on
    the local system's time zone settings. In order to pass consistently
    across contexts, tests for this value must take the system configuration
    into account.
    
    Introduce a test harness utility function to encapsulate these concerns.
    Re-use this function across all test files that assert the exact
    millisecond representation of Date instances.