9 lines
363 B
JavaScript
9 lines
363 B
JavaScript
const expect = require('expect');
|
|
const truncateString = require('./truncateString.js');
|
|
|
|
test('Testing truncateString', () => {
|
|
//For more information on all the methods supported by tape
|
|
//Please go to https://github.com/substack/tape
|
|
expect(typeof truncateString === 'function').toBeTruthy();
|
|
expect(truncateString('boomerang', 7)).toBe('boom...');
|
|
}); |