blob: 1b45e953efa100855f10bbe42f40a04f889c462e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
var trim = require('../../../lib/utils').trim;
describe('utils::trim', function () {
it('should trim spaces', function () {
expect(trim(' foo ')).toEqual('foo');
});
it('should trim tabs', function () {
expect(trim('\tfoo\t')).toEqual('foo');
});
});
|