Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
use Number() over +
Browse files Browse the repository at this point in the history
  • Loading branch information
montyanderson committed May 14, 2019
1 parent 5bf4215 commit 14b4726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/server.test.js
Expand Up @@ -94,5 +94,5 @@ test('/nodes', async () => {
});

assert.strictEqual(data[0].url, 'https://yacdn.org');
assert(+data[0].distance < 0.0003);
assert(Number(data[0].distance) < 0.0003);
});

0 comments on commit 14b4726

Please sign in to comment.