Files
30-seconds-of-code/test/getType.test.js
2018-10-19 20:18:00 +03:00

10 lines
267 B
JavaScript

const expect = require('expect');
const {getType} = require('./_30s.js');
test('getType is a Function', () => {
expect(getType).toBeInstanceOf(Function);
});
test('Returns the native type of a value', () => {
expect(getType(new Set([1, 2, 3]))).toBe('set');
});