From 4eb0df0ab8d72ad224b87b2f0dd9b372ae2b0429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 10 Jan 2018 11:13:32 +0100 Subject: [PATCH] add test for truncateString --- test/truncateString/truncateString.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/truncateString/truncateString.test.js b/test/truncateString/truncateString.test.js index 0b6ef0997..da3ce1d3c 100644 --- a/test/truncateString/truncateString.test.js +++ b/test/truncateString/truncateString.test.js @@ -5,7 +5,7 @@ test('Testing truncateString', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof truncateString === 'function', 'truncateString is a Function'); - //t.deepEqual(truncateString(args..), 'Expected'); + t.equal(truncateString('boomerang', 7), 'boom...', 'Truncates a "boomerang" up to a specified length.'); //t.equal(truncateString(args..), 'Expected'); //t.false(truncateString(args..), 'Expected'); //t.throws(truncateString(args..), 'Expected');