Add indentString
This commit is contained in:
12
test/indentString/indentString.test.js
Normal file
12
test/indentString/indentString.test.js
Normal file
@ -0,0 +1,12 @@
|
||||
const expect = require('expect');
|
||||
const indentString = require('./indentString.js');
|
||||
|
||||
test('indentString is a Function', () => {
|
||||
expect(indentString).toBeInstanceOf(Function);
|
||||
});
|
||||
test('indentString is a Function', () => {
|
||||
expect(indentString('Lorem\nIpsum', 2)).toBe(' Lorem\n Ipsum');
|
||||
});
|
||||
test('indentString is a Function', () => {
|
||||
expect(indentString('Lorem\nIpsum', 2, '_')).toBe('__Lorem\n__Ipsum');
|
||||
});
|
||||
Reference in New Issue
Block a user