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

13 lines
294 B
JavaScript

const expect = require('expect');
const distance = require('./distance.js');
test('distance is a Function', () => {
expect(distance).toBeInstanceOf(Function);
});
test('Calculates the distance between two points', () => {
expect(distance(1, 1, 2, 3), 2.23606797749979).toBe()
});