Useful methods for file-related functions.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
409 B

  1. import isBrowser from './isBrowser'
  2. describe('isBrowser', () => {
  3. it('should exist', () => {
  4. expect(isBrowser).toBeDefined()
  5. })
  6. it('should be a callable', () => {
  7. expect(typeof isBrowser).toBe('function')
  8. })
  9. it('should accept no arguments', () => {
  10. expect(isBrowser).toHaveLength(0)
  11. })
  12. it('should return a boolean', () => {
  13. expect(typeof isBrowser()).toBe('boolean')
  14. })
  15. })