From fad3f0755929f2d863eca276c526b931d43605c0 Mon Sep 17 00:00:00 2001 From: FeschenkoNatalia Date: Fri, 6 Apr 2018 11:56:47 +0300 Subject: [PATCH] Fix selection sort --- lib/sorts/selection-sort/index.js | 1 + lib/sorts/selection-sort/selection-sort.test.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sorts/selection-sort/index.js b/lib/sorts/selection-sort/index.js index 43b91f8..0f321d9 100644 --- a/lib/sorts/selection-sort/index.js +++ b/lib/sorts/selection-sort/index.js @@ -1,3 +1,4 @@ + module.exports = function selectionSort(array) { let minIndex; let temp; diff --git a/lib/sorts/selection-sort/selection-sort.test.js b/lib/sorts/selection-sort/selection-sort.test.js index beda2eb..7293399 100644 --- a/lib/sorts/selection-sort/selection-sort.test.js +++ b/lib/sorts/selection-sort/selection-sort.test.js @@ -1,4 +1,3 @@ - const should = require('should'); const algo = require('../../index.js');