Add Date::New overload for a std::chrono::system_clock::time_point#1705
Conversation
|
Not too sure how to add a unit test for this since it seems they're being done in JS |
|
Would you mind adding a test case in https://github.com/nodejs/node-addon-api/blob/main/test/date.cc and https://github.com/nodejs/node-addon-api/blob/main/test/date.js? Thank you! |
|
Added some basic unit test, |
KevinEady
left a comment
There was a problem hiding this comment.
Guards for c++11 can be removed.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1705 +/- ##
==========================================
+ Coverage 63.50% 63.56% +0.05%
==========================================
Files 3 3
Lines 2047 2053 +6
Branches 728 729 +1
==========================================
+ Hits 1300 1305 +5
Misses 162 162
- Partials 585 586 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #1704