Useful methods for file-related functions.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

20 righe
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. })