Additional tests

This commit is contained in:
Angelos Chalaris
2018-10-31 20:41:38 +02:00
parent 53151c01e5
commit abd66ccc0a
5 changed files with 21 additions and 1 deletions

View File

@ -7,3 +7,9 @@ test('getType is a Function', () => {
test('Returns the native type of a value', () => {
expect(getType(new Set([1, 2, 3]))).toBe('set');
});
test('Returns null for null', () => {
expect(getType(null)).toBe('null');
});
test('Returns undefined for undefined', () => {
expect(getType(undefined)).toBe('undefined');
});