Comments (6)
Oh yeah 😅 I was reading it wrong. Let's change chai 😄
from loupe.
@keithamus Yeah, thanks, it worked
At the moment I have 15 failed tests
from loupe.
Let's change it here - ISO dates lead to less confusion.
from loupe.
I think you meant in chai, since loupe uses ISO, or I'm wrong?))
from loupe.
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.
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)
- TODO for v2 Release HOT 4
- Loupe doesn't work correctly for buffers HOT 2
- Return value for number 0 HOT 6
- `inspect( 1n )` => no joy HOT 2
- broken dependency `get-function-name` HOT 2
- Handle circular references HOT 1
- Quote complex keys in objects HOT 1
- The automated release is failing 🚨 HOT 1
- IE9+ not supported since 4.3.5 because of loupe HOT 4
- inspect of Object with null prototype causes primitive value error
- Invalid Date object will throw a TypeError HOT 5
- add an option to render functions as their body HOT 5
- Package `loupe` seems to be an ES Module but shipped in a CommonJS package HOT 1
- `depth` option HOT 1
- vulnerability in loupe HOT 1
- New release for Dependabot Fix? HOT 1
- prevent `playwright` installation HOT 2
- Is the custom `inspect()` still needed?
- Handle circular references better HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loupe.