Files
30-seconds-of-code/test/getType/getType.test.js
2018-06-18 16:34:04 +03:00

12 lines
275 B
JavaScript

const expect = require('expect');
const getType = require('./getType.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')
});