12 lines
320 B
JavaScript
12 lines
320 B
JavaScript
import { breakText } from '../src/textProcessing/breakText.js'
|
|
|
|
describe('breakText', function() {
|
|
it('returns an array', function() {
|
|
expect(Array.isArray(breakText('Hello World'))).toBeTruthy()
|
|
})
|
|
|
|
it('array is of appropriate length', function() {
|
|
expect(breakText('Hello World').length).toBe(2)
|
|
})
|
|
})
|