10 lines
257 B
JavaScript
10 lines
257 B
JavaScript
const expect = require('expect');
|
|
const {isBrowser} = require('./_30s.js');
|
|
|
|
test('isBrowser is a Function', () => {
|
|
expect(isBrowser).toBeInstanceOf(Function);
|
|
});
|
|
test('isBrowser is a Function', () => {
|
|
expect(typeof isBrowser()).toBe('boolean');
|
|
});
|