Simon Vieille
62da111aca
Some checks failed
Gitnet/scraper/pipeline/head There was a failure building this commit
21 lines
500 B
JavaScript
21 lines
500 B
JavaScript
const filter = require('../src/filter/breaks')
|
|
const assert = require('assert')
|
|
|
|
describe('Check "breaks"', () => {
|
|
it('Should return empty string', () => {
|
|
assert.equal(filter("\n"), "")
|
|
})
|
|
|
|
it('Should return empty string', () => {
|
|
assert.equal(filter("\r"), "")
|
|
})
|
|
|
|
it('Should return "foo"', () => {
|
|
assert.equal(filter("foo"), "foo")
|
|
})
|
|
|
|
it('Should return "foobar"', () => {
|
|
assert.equal(filter("\r\nfoo\nbar\r\n"), "foobar")
|
|
})
|
|
});
|