mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
13 lines
272 B
JavaScript
13 lines
272 B
JavaScript
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');
|
|
});
|
|
});
|
|
|