From 573695ad941b38f5befd7b0f7fc39a3b47eee195 Mon Sep 17 00:00:00 2001 From: Arnelle Balane Date: Sat, 26 Jan 2019 00:20:22 +0800 Subject: [PATCH] Move method definitions and tests together in same directories --- methods/{all.js => all/index.js} | 0 tests/all.js => methods/all/tests.js | 2 +- methods/{any.js => any/index.js} | 0 tests/any.js => methods/any/tests.js | 2 +- methods/{assoc.js => assoc/index.js} | 0 tests/assoc.js => methods/assoc/tests.js | 2 +- 6 files changed, 3 insertions(+), 3 deletions(-) rename methods/{all.js => all/index.js} (100%) rename tests/all.js => methods/all/tests.js (97%) rename methods/{any.js => any/index.js} (100%) rename tests/any.js => methods/any/tests.js (96%) rename methods/{assoc.js => assoc/index.js} (100%) rename tests/assoc.js => methods/assoc/tests.js (96%) 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(