Test cleanup and fixes [s-t]

This commit is contained in:
Angelos Chalaris
2018-06-18 18:37:35 +03:00
parent 9c22d92c34
commit 46ad6c08b9
53 changed files with 286 additions and 409 deletions

View File

@ -1,11 +1,9 @@
const expect = require('expect');
const truncateString = require('./truncateString.js');
test('truncateString is a Function', () => {
test('truncateString is a Function', () => {
expect(truncateString).toBeInstanceOf(Function);
});
test('Truncates a "boomerang" up to a specified length.', () => {
expect(truncateString('boomerang', 7), 'boom...').toBe()
test('Truncates a "boomerang" up to a specified length.', () => {
expect(truncateString('boomerang', 7)).toBe('boom...');
});