diff --git a/test/fuzzySearch/fuzzySearch.js b/test/fuzzySearch/fuzzySearch.js deleted file mode 100644 index 941fb5e17..000000000 --- a/test/fuzzySearch/fuzzySearch.js +++ /dev/null @@ -1,5 +0,0 @@ -const fuzzySearch = (pattern, str) => - [...str].reduce( - (matchIndex, char) => char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() ? matchIndex + 1 : matchIndex, 0 - ) === pattern.length ? true : false; -module.exports = fuzzySearch; diff --git a/test/fuzzySearch/fuzzySearch.test.js b/test/fuzzySearch/fuzzySearch.test.js deleted file mode 100644 index c08682e80..000000000 --- a/test/fuzzySearch/fuzzySearch.test.js +++ /dev/null @@ -1,15 +0,0 @@ -const test = require('tape'); -const fuzzySearch = require('./fuzzySearch.js'); - -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'); - //t.throws(fuzzySearch(args..), 'Expected'); - t.end(); -}); \ No newline at end of file diff --git a/test/isSimilar/isSimilar.js b/test/isSimilar/isSimilar.js deleted file mode 100644 index 9c4fc3eec..000000000 --- a/test/isSimilar/isSimilar.js +++ /dev/null @@ -1,5 +0,0 @@ -const isSimilar = (pattern, str) => -[...str].reduce( -(matchIndex, char) => char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() ? matchIndex + 1 : matchIndex, 0 -) === pattern.length ? true : false; -module.exports = isSimilar; \ No newline at end of file diff --git a/test/isSimilar/isSimilar.test.js b/test/isSimilar/isSimilar.test.js deleted file mode 100644 index bcc980a18..000000000 --- a/test/isSimilar/isSimilar.test.js +++ /dev/null @@ -1,13 +0,0 @@ -const test = require('tape'); -const isSimilar = require('./isSimilar.js'); - -test('Testing isSimilar', (t) => { - //For more information on all the methods supported by tape - //Please go to https://github.com/substack/tape - t.true(typeof isSimilar === 'function', 'isSimilar is a Function'); - //t.deepEqual(isSimilar(args..), 'Expected'); - //t.equal(isSimilar(args..), 'Expected'); - //t.false(isSimilar(args..), 'Expected'); - //t.throws(isSimilar(args..), 'Expected'); - t.end(); -}); \ No newline at end of file