Updated the test system
This commit is contained in:
9
test/radsToDegrees.test.js
Normal file
9
test/radsToDegrees.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const {radsToDegrees} = require('./_30s.js');
|
||||
|
||||
test('radsToDegrees is a Function', () => {
|
||||
expect(radsToDegrees).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Returns the appropriate value', () => {
|
||||
expect(radsToDegrees(Math.PI / 2)).toBe(90);
|
||||
});
|
||||
Reference in New Issue
Block a user