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

10 lines
271 B
JavaScript

const expect = require('expect');
const {isSymbol} = require('./_30s.js');
test('isSymbol is a Function', () => {
expect(isSymbol).toBeInstanceOf(Function);
});
test('Checks if the given argument is a symbol', () => {
expect(isSymbol(Symbol('x'))).toBeTruthy();
});