scraper/test/breaks.test.js
Simon Vieille 62da111aca
Some checks failed
Gitnet/scraper/pipeline/head There was a failure building this commit
add tests
2020-09-02 10:44:33 +02:00

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