UNPKG

functionfoundry

Version:
12 lines (10 loc) 262 B
import len from '../src/len'; import error from '../src/error'; import test from 'tape'; test('len', function(t) { t.plan(4) t.equal( len("12345"), 5 ); t.equal( len(["12345"]), 1 ); t.equal( len(), error.error ); t.equal( len(NaN), error.value ); })