trim.js 256 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
var trim = require('../../../lib/utils').trim;

module.exports = {
  testTrim: function (test) {
    test.equals(trim('  foo  '), 'foo');
    test.done();
  },

  testTrimTab: function (test) {
    test.equals(trim('\tfoo'), 'foo');
    test.done();
  }
};