|
- import isBrowser from './isBrowser'
-
- describe('isBrowser', () => {
- it('should exist', () => {
- expect(isBrowser).toBeDefined()
- })
-
- it('should be a callable', () => {
- expect(typeof isBrowser).toBe('function')
- })
-
- it('should accept no arguments', () => {
- expect(isBrowser).toHaveLength(0)
- })
-
- it('should return a boolean', () => {
- expect(typeof isBrowser()).toBe('boolean')
- })
- })
|