Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
9
test/splitLines/splitLines.test.js
Normal file
9
test/splitLines/splitLines.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const splitLines = require('./splitLines.js');
|
||||
|
||||
|
||||
test('splitLines is a Function', () => {
|
||||
expect(splitLines).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(splitLines('This\nis a\nmultiline\nstring.\n'), ['This', 'is a', 'multiline', 'string.' , ''], "Splits a multiline string into an array of lines.");
|
||||
|
||||
Reference in New Issue
Block a user