From 84d5260583583746a7ffe920f6627e28e725c643 Mon Sep 17 00:00:00 2001 From: Rohit Tanwar Date: Sat, 17 Feb 2018 22:03:56 +0530 Subject: [PATCH] add tests --- test/fuzzySearch/fuzzySearch.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/fuzzySearch/fuzzySearch.test.js b/test/fuzzySearch/fuzzySearch.test.js index eab6f467c..c08682e80 100644 --- a/test/fuzzySearch/fuzzySearch.test.js +++ b/test/fuzzySearch/fuzzySearch.test.js @@ -5,6 +5,8 @@ test('Testing fuzzySearch', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof fuzzySearch === 'function', 'fuzzySearch is a Function'); + t.true(fuzzySearch('rt','Rohit'),'Provided examples work'); + t.false(fuzzySearch('tr','Rohit'),'Provided examples work'); //t.deepEqual(fuzzySearch(args..), 'Expected'); //t.equal(fuzzySearch(args..), 'Expected'); //t.false(fuzzySearch(args..), 'Expected');