Skip to main content
Module

x/rambda/max.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { max } from './max'
test('with number', () => { expect(max(2, 1)).toBe(2)})
test('with string', () => { expect(max('foo')('bar')).toBe('foo') expect(max('bar')('baz')).toBe('baz')})