Files
30-seconds-of-code/test/radsToDegrees/radsToDegrees.test.js
Angelos Chalaris a78f5db260 Test migration to jest by hand
Apparently using regular expressions is way easier.
2018-06-18 15:15:56 +03:00

11 lines
269 B
JavaScript

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');