Giter Site home page Giter Site logo

Comments (6)

keithamus avatar keithamus commented on June 12, 2024 1

Oh yeah 😅 I was reading it wrong. Let's change chai 😄

from loupe.

flaambe avatar flaambe commented on June 12, 2024 1

@keithamus Yeah, thanks, it worked

At the moment I have 15 failed tests

from loupe.

keithamus avatar keithamus commented on June 12, 2024

Let's change it here - ISO dates lead to less confusion.

from loupe.

flaambe avatar flaambe commented on June 12, 2024

I think you meant in chai, since loupe uses ISO, or I'm wrong?))

from loupe.

flaambe avatar flaambe commented on June 12, 2024

I can't figure out what the problem is:

  5) expect
       within(start, finish) (dates):

      expected 'blah
      + expected - actual

      -blah: expected 2021-01-27T12:03:21.949Z to not be within Wed Jan 27 2021 17:03:21 GMT+0500 (Uzbekistan Standard Time)..Wed Jan 27 2021 17:03:22 GMT+0500 (Uzbekistan Standard Time)
      +blah: expected 2021-01-27T12:03:21.949Z to not be within 2021-01-27T12:03:21.949Z..2021-01-27T12:03:22.949Z
      
      at globalErr (test/bootstrap/index.js:52:57)
      at Context.<anonymous> (test/expect.js:618:5)
      at processImmediate (internal/timers.js:461:21)

from loupe.

keithamus avatar keithamus commented on June 12, 2024

https://github.com/chaijs/chai/blob/23764f340d6d3796eafdb7a9869b423bc45e0c8b/lib/chai/core/assertions.js#L1569

this probably needs to change to something like

range = loupe(start) + '..' + loupe(finish)

There'll likely be a few of these behavioural changes within the code. Part of the motivation for moving to using loupe is to standardise this kind of edge case behaviour.

from loupe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.