From 5ec8f6f9b41cd8d65093ae70f6031372ccb30865 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 12 Sep 2018 18:40:25 +0200 Subject: [PATCH] rename tests folder to the more accurate usecases --- src/scenario.js | 24 +++++++++---------- src/{tests => usecases}/accept-invite.js | 0 src/{tests => usecases}/consent.js | 0 src/{tests => usecases}/create-room.js | 0 src/{tests => usecases}/dialog.js | 0 src/{tests => usecases}/invite.js | 0 src/{tests => usecases}/join.js | 0 src/{tests => usecases}/room-settings.js | 0 src/{tests => usecases}/send-message.js | 0 .../server-notices-consent.js | 0 src/{tests => usecases}/settings.js | 0 src/{tests => usecases}/signup.js | 0 src/{tests => usecases}/timeline.js | 0 src/{tests => usecases}/verify-device.js | 0 14 files changed, 12 insertions(+), 12 deletions(-) rename src/{tests => usecases}/accept-invite.js (100%) rename src/{tests => usecases}/consent.js (100%) rename src/{tests => usecases}/create-room.js (100%) rename src/{tests => usecases}/dialog.js (100%) rename src/{tests => usecases}/invite.js (100%) rename src/{tests => usecases}/join.js (100%) rename src/{tests => usecases}/room-settings.js (100%) rename src/{tests => usecases}/send-message.js (100%) rename src/{tests => usecases}/server-notices-consent.js (100%) rename src/{tests => usecases}/settings.js (100%) rename src/{tests => usecases}/signup.js (100%) rename src/{tests => usecases}/timeline.js (100%) rename src/{tests => usecases}/verify-device.js (100%) diff --git a/src/scenario.js b/src/scenario.js index 3538fa2d40..77307689ea 100644 --- a/src/scenario.js +++ b/src/scenario.js @@ -15,23 +15,23 @@ limitations under the License. */ -const {acceptDialogMaybe} = require('./tests/dialog'); -const signup = require('./tests/signup'); -const join = require('./tests/join'); -const sendMessage = require('./tests/send-message'); -const acceptInvite = require('./tests/accept-invite'); -const invite = require('./tests/invite'); const {delay, range} = require('./util'); +const {acceptDialogMaybe} = require('./usecases/dialog'); +const signup = require('./usecases/signup'); +const join = require('./usecases/join'); +const sendMessage = require('./usecases/send-message'); +const acceptInvite = require('./usecases/accept-invite'); +const invite = require('./usecases/invite'); const { receiveMessage, checkTimelineContains, scrollToTimelineTop -} = require('./tests/timeline'); -const createRoom = require('./tests/create-room'); -const changeRoomSettings = require('./tests/room-settings'); -const acceptServerNoticesInviteAndConsent = require('./tests/server-notices-consent'); -const {enableLazyLoading, getE2EDeviceFromSettings} = require('./tests/settings'); -const verifyDeviceForUser = require("./tests/verify-device"); +} = require('./usecases/timeline'); +const createRoom = require('./usecases/create-room'); +const changeRoomSettings = require('./usecases/room-settings'); +const acceptServerNoticesInviteAndConsent = require('./usecases/server-notices-consent'); +const {enableLazyLoading, getE2EDeviceFromSettings} = require('./usecases/settings'); +const verifyDeviceForUser = require("./usecases/verify-device"); module.exports = async function scenario(createSession, restCreator) { async function createUser(username) { diff --git a/src/tests/accept-invite.js b/src/usecases/accept-invite.js similarity index 100% rename from src/tests/accept-invite.js rename to src/usecases/accept-invite.js diff --git a/src/tests/consent.js b/src/usecases/consent.js similarity index 100% rename from src/tests/consent.js rename to src/usecases/consent.js diff --git a/src/tests/create-room.js b/src/usecases/create-room.js similarity index 100% rename from src/tests/create-room.js rename to src/usecases/create-room.js diff --git a/src/tests/dialog.js b/src/usecases/dialog.js similarity index 100% rename from src/tests/dialog.js rename to src/usecases/dialog.js diff --git a/src/tests/invite.js b/src/usecases/invite.js similarity index 100% rename from src/tests/invite.js rename to src/usecases/invite.js diff --git a/src/tests/join.js b/src/usecases/join.js similarity index 100% rename from src/tests/join.js rename to src/usecases/join.js diff --git a/src/tests/room-settings.js b/src/usecases/room-settings.js similarity index 100% rename from src/tests/room-settings.js rename to src/usecases/room-settings.js diff --git a/src/tests/send-message.js b/src/usecases/send-message.js similarity index 100% rename from src/tests/send-message.js rename to src/usecases/send-message.js diff --git a/src/tests/server-notices-consent.js b/src/usecases/server-notices-consent.js similarity index 100% rename from src/tests/server-notices-consent.js rename to src/usecases/server-notices-consent.js diff --git a/src/tests/settings.js b/src/usecases/settings.js similarity index 100% rename from src/tests/settings.js rename to src/usecases/settings.js diff --git a/src/tests/signup.js b/src/usecases/signup.js similarity index 100% rename from src/tests/signup.js rename to src/usecases/signup.js diff --git a/src/tests/timeline.js b/src/usecases/timeline.js similarity index 100% rename from src/tests/timeline.js rename to src/usecases/timeline.js diff --git a/src/tests/verify-device.js b/src/usecases/verify-device.js similarity index 100% rename from src/tests/verify-device.js rename to src/usecases/verify-device.js