Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
10
test/radsToDegrees/radsToDegrees.test.js
Normal file
10
test/radsToDegrees/radsToDegrees.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const radsToDegrees = require('./radsToDegrees.js');
|
||||
|
||||
|
||||
test('radsToDegrees is a Function', () => {
|
||||
expect(radsToDegrees).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(radsToDegrees(Math.PI / 2), 90, 'Returns the appropriate value');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user