UNPKG

functionfoundry

Version:
11 lines (9 loc) 235 B
import test from 'tape' import year from '../src/year' import error from '../src/error' test('year', (t) => { t.plan(3) t.equal( year('1/1/2000'), 2000) t.equal( year('5/15/2005'), 2005) t.equal( year('12/31/2012'), 2012) });