scraper/test/spaces.test.js

17 lines
380 B
JavaScript
Raw Permalink Normal View History

2020-09-02 10:44:33 +02:00
const filter = require('../src/filter/spaces')
const assert = require('assert')
describe('Check "spaces"', () => {
2023-03-31 17:53:50 +02:00
it('Should return ""', () => {
assert.equal(filter(""), "")
})
2020-09-02 10:44:33 +02:00
2023-03-31 17:53:50 +02:00
it('Should return "foo bar"', () => {
assert.equal(filter("foo bar"), "foo bar")
})
2020-09-02 10:44:33 +02:00
2023-03-31 17:53:50 +02:00
it('Should return "foo bar"', () => {
assert.equal(filter("foo \nbar"), "foo bar")
})
2020-09-02 10:44:33 +02:00
});