UNPKG

tamda

Version:

Practical functional programming library for TypeScript

12 lines (8 loc) 224 B
import { identity } from './identity'; describe('identity', () => { it('should return the supplied argument itself', () => { const obj = {}; const result = identity(obj); expect(result).toBe(obj); }); });