Fix lint issues

This commit is contained in:
jos 2019-12-28 17:17:27 +01:00
parent 275fcc8fee
commit 10a48ca7b2
1 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,8 @@ describe('util', () => {
assert.strictEqual(formatSize(7.22 * 1000 * 1000), '7.2 MB') assert.strictEqual(formatSize(7.22 * 1000 * 1000), '7.2 MB')
assert.strictEqual(formatSize(945.4 * 1000 * 1000), '0.9 GB') assert.strictEqual(formatSize(945.4 * 1000 * 1000), '0.9 GB')
assert.strictEqual(formatSize(22.37 * 1000 * 1000 * 1000), '22.4 GB') assert.strictEqual(formatSize(22.37 * 1000 * 1000 * 1000), '22.4 GB')
assert.strictEqual(formatSize(1000 * 1000 * 1000 * 1000), '1.0 TB') }) assert.strictEqual(formatSize(1000 * 1000 * 1000 * 1000), '1.0 TB')
})
it('should limit characters', () => { it('should limit characters', () => {
assert.strictEqual(limitCharacters('hello world', 11), 'hello world') assert.strictEqual(limitCharacters('hello world', 11), 'hello world')