diff --git a/methods/all.js b/methods/all/index.js similarity index 100% rename from methods/all.js rename to methods/all/index.js diff --git a/tests/all.js b/methods/all/tests.js similarity index 97% rename from tests/all.js rename to methods/all/tests.js index aafd01f..a4f5506 100644 --- a/tests/all.js +++ b/methods/all/tests.js @@ -1,5 +1,5 @@ import test from 'ava'; -import all from '../methods/all'; +import all from '.'; test('return true if array is empty', t => { t.true(all([])); diff --git a/methods/any.js b/methods/any/index.js similarity index 100% rename from methods/any.js rename to methods/any/index.js diff --git a/tests/any.js b/methods/any/tests.js similarity index 96% rename from tests/any.js rename to methods/any/tests.js index ae51f62..9348b79 100644 --- a/tests/any.js +++ b/methods/any/tests.js @@ -1,5 +1,5 @@ import test from 'ava'; -import any from '../methods/any'; +import any from '.'; test('return false if array is empty', t => { t.false(any([])); diff --git a/methods/assoc.js b/methods/assoc/index.js similarity index 100% rename from methods/assoc.js rename to methods/assoc/index.js diff --git a/tests/assoc.js b/methods/assoc/tests.js similarity index 96% rename from tests/assoc.js rename to methods/assoc/tests.js index 8d7f061..0a3f537 100644 --- a/tests/assoc.js +++ b/methods/assoc/tests.js @@ -1,5 +1,5 @@ import test from 'ava'; -import assoc from '../methods/assoc'; +import assoc from '.'; test('return the first array whose first element is the given object', t => { t.deepEqual(