UNPKG

quasvel

Version:

Access and interact with Aragon Organizations and their apps.

12 lines (10 loc) 340 B
import { toArrayEntry } from '../misc' describe('toArrayEntry()', () => { test('Should return an array when a non-array is passed', () => { expect(toArrayEntry(1)).toStrictEqual([1]) }) test('Should return the same value when an array is passed', () => { const value = [1] expect(toArrayEntry(value)).toBe(value) }) })