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") }) });