node-ff
Version:
A CLI for creating NodeJs projects
18 lines (13 loc) • 562 B
text/typescript
import { assert } from 'chai';
import { describe } from 'mocha';
import { textHandling } from '../../src/utils';
describe('@TextHandling', () => {
it('Deve retornar o texto formatado retirando linhas em branco e espacos', () => {
const text = textHandling.return_text('\n Felipe Neves ');
assert.equal('Felipe Neves', text);
});
it('Deve retornar o texto formatado retirando somente linhas em branco', () => {
const text = textHandling.return_text('\nFelipe Neves', true);
assert.equal('Felipe Neves', text);
});
});