rsvp-reader/spec/breakText.spec.js
2019-09-14 09:35:14 +02:00

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)
})
})