UNPKG

functionfoundry

Version:
14 lines (10 loc) 298 B
import test from 'tape'; import trim from '../src/trim'; test('trim', function(t) { t.plan(5); t.is(trim(' foo '), 'foo') t.is(trim(' foo bar '), 'foo bar') t.is(trim('foo bar '), 'foo bar') t.is(trim(' foo'), 'foo') t.is(trim('foo bar '), 'foo bar') });