remove test files
This commit is contained in:
@ -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;
|
||||
@ -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();
|
||||
});
|
||||
@ -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;
|
||||
@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user