Skip to content

Commit

Permalink
Update some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jan 20, 2024
1 parent ae7a111 commit 1f1085b
Show file tree
Hide file tree
Showing 12 changed files with 1,035 additions and 1,128 deletions.
2 changes: 1 addition & 1 deletion lib/commands/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function getCoordDefault(val) {
* @param {number} digits
* @returns {number}
*/
function truncateDecimals(number, digits) {
export function truncateDecimals(number, digits) {
const multiplier = Math.pow(10, digits),
adjustedNum = number * multiplier,
truncatedNum = Math[adjustedNum < 0 ? 'ceil' : 'floor'](adjustedNum);
Expand Down
Loading

0 comments on commit 1f1085b

Please sign in to comment.