13 lines
417 B
JavaScript
13 lines
417 B
JavaScript
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');
|
|
});
|