apply linter
This commit is contained in:
parent
cf9dd3218e
commit
01a2b9bc0c
|
@ -2,19 +2,19 @@ const filter = require('../src/filter/breaks')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
||||||
describe('Check "breaks"', () => {
|
describe('Check "breaks"', () => {
|
||||||
it('Should return empty string', () => {
|
it('Should return empty string', () => {
|
||||||
assert.equal(filter("\n"), "")
|
assert.equal(filter("\n"), "")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return empty string', () => {
|
it('Should return empty string', () => {
|
||||||
assert.equal(filter("\r"), "")
|
assert.equal(filter("\r"), "")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return "foo"', () => {
|
it('Should return "foo"', () => {
|
||||||
assert.equal(filter("foo"), "foo")
|
assert.equal(filter("foo"), "foo")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return "foobar"', () => {
|
it('Should return "foobar"', () => {
|
||||||
assert.equal(filter("\r\nfoo\nbar\r\n"), "foobar")
|
assert.equal(filter("\r\nfoo\nbar\r\n"), "foobar")
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,15 +2,15 @@ const filter = require('../src/filter/spaces')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
||||||
describe('Check "spaces"', () => {
|
describe('Check "spaces"', () => {
|
||||||
it('Should return ""', () => {
|
it('Should return ""', () => {
|
||||||
assert.equal(filter(""), "")
|
assert.equal(filter(""), "")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return "foo bar"', () => {
|
it('Should return "foo bar"', () => {
|
||||||
assert.equal(filter("foo bar"), "foo bar")
|
assert.equal(filter("foo bar"), "foo bar")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return "foo bar"', () => {
|
it('Should return "foo bar"', () => {
|
||||||
assert.equal(filter("foo \nbar"), "foo bar")
|
assert.equal(filter("foo \nbar"), "foo bar")
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,19 +2,19 @@ const filter = require('../src/filter/trim')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
||||||
describe('Check "trim"', () => {
|
describe('Check "trim"', () => {
|
||||||
it('Should return ""', () => {
|
it('Should return ""', () => {
|
||||||
assert.equal(filter(""), "")
|
assert.equal(filter(""), "")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return ""', () => {
|
it('Should return ""', () => {
|
||||||
assert.equal(filter(" "), "")
|
assert.equal(filter(" "), "")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return "foo"', () => {
|
it('Should return "foo"', () => {
|
||||||
assert.equal(filter(" foo "), "foo")
|
assert.equal(filter(" foo "), "foo")
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should return "foo bar"', () => {
|
it('Should return "foo bar"', () => {
|
||||||
assert.equal(filter(" foo bar \n"), "foo bar")
|
assert.equal(filter(" foo bar \n"), "foo bar")
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue