UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

7 lines (6 loc) 165 B
import { sum } from './sum'; describe('sum', () => { it('should return the sum of the given values', () => { expect(sum([1, 2, 3])).toBe(6); }); });