From f3988f490964681189940710b35c1d1ec33348da Mon Sep 17 00:00:00 2001 From: FeschenkoNatalia Date: Fri, 6 Apr 2018 12:00:50 +0300 Subject: [PATCH] Fix shell sort --- lib/sorts/shell-sort/index.js | 1 + lib/sorts/shell-sort/shell-sort.test.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sorts/shell-sort/index.js b/lib/sorts/shell-sort/index.js index 322670d..256ff12 100644 --- a/lib/sorts/shell-sort/index.js +++ b/lib/sorts/shell-sort/index.js @@ -1,3 +1,4 @@ + module.exports = function shellSort(array) { let k = 1; while (k < array.length / 3) { diff --git a/lib/sorts/shell-sort/shell-sort.test.js b/lib/sorts/shell-sort/shell-sort.test.js index a142701..bae0ea3 100644 --- a/lib/sorts/shell-sort/shell-sort.test.js +++ b/lib/sorts/shell-sort/shell-sort.test.js @@ -1,4 +1,3 @@ - const should = require('should'); const algo = require('../../index.js');