Skip to content

Commit

Permalink
prettier check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanscut committed Jun 14, 2020
1 parent c3b96d3 commit d48376e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/utils/float-calculate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function toBigInt(floatNum) {
len,
mag,
intNum;

if (Math.floor(floatNum) === floatNum) {
bigInt.num = floatNum;
return bigInt;
Expand Down
4 changes: 3 additions & 1 deletion src/test/moment/duration.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ test('instantiation from another duration', function (assert) {

test('explicit cloning', function (assert) {
var duration = moment.duration(1.1234, 'hours');
assert.equal(duration.milliseconds(), 240,
assert.equal(
duration.milliseconds(),
240,
'Float number calculation will not lose accuracy'
);
});
Expand Down

0 comments on commit d48376e

Please sign in to comment.