Skip to content

Commit

Permalink
test: added test coverage to toRad
Browse files Browse the repository at this point in the history
  • Loading branch information
ddarren committed May 31, 2023
1 parent b740c71 commit 5c29f71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/toRad.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import toRad from './toRad';

describe('toRad', () => {
it('converts a value to a radian', () => {
expect(toRad(2019.0439689092252)).toEqual(35.238965);
});
});

0 comments on commit 5c29f71

Please sign in to comment.