Updated the test system
This commit is contained in:
15
test/splitLines.test.js
Normal file
15
test/splitLines.test.js
Normal file
@ -0,0 +1,15 @@
|
||||
const expect = require('expect');
|
||||
const {splitLines} = require('./_30s.js');
|
||||
|
||||
test('splitLines is a Function', () => {
|
||||
expect(splitLines).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Splits a multiline string into an array of lines.', () => {
|
||||
expect(splitLines('This\nis a\nmultiline\nstring.\n')).toEqual([
|
||||
'This',
|
||||
'is a',
|
||||
'multiline',
|
||||
'string.',
|
||||
''
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user