Skip to content

DateAssertion.toBeDayOfWeek fails on Sunday dates when comparing to "sunday" literal #75

Closed

Description

@neolight1010

When using toBeDayOfWeek to assert on a date that is a Sunday, when using the "sunday" literal.

Example

const octoberNinth2022 = new Date(2022, 9, 9);
expect(octoberNinth2022).toBeDayOfWeek("sunday");

This will fail with the following message: Expected <0> to be equal to <7>

image

Activity

  1. github-actions commented on Jul 28, 2023

    @github-actions

    🎉 This issue has been resolved in version 1.3.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  2. github-actions commented on Feb 19, 2024

    @github-actions

    🎉 This issue has been resolved in version 1.0.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions