From bc7ea44a593a27ce4908371af5f42213bd5549b4 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 21 Jan 2019 16:12:36 -0600 Subject: [PATCH] Rename login directory to auth --- .../{login => auth}/VectorCustomServerDialog.js | 0 .../views/{login => auth}/VectorLoginFooter.js | 0 .../views/{login => auth}/VectorLoginHeader.js | 0 test/app-tests/loading.js | 12 ++++++------ 4 files changed, 6 insertions(+), 6 deletions(-) rename src/components/views/{login => auth}/VectorCustomServerDialog.js (100%) rename src/components/views/{login => auth}/VectorLoginFooter.js (100%) rename src/components/views/{login => auth}/VectorLoginHeader.js (100%) diff --git a/src/components/views/login/VectorCustomServerDialog.js b/src/components/views/auth/VectorCustomServerDialog.js similarity index 100% rename from src/components/views/login/VectorCustomServerDialog.js rename to src/components/views/auth/VectorCustomServerDialog.js diff --git a/src/components/views/login/VectorLoginFooter.js b/src/components/views/auth/VectorLoginFooter.js similarity index 100% rename from src/components/views/login/VectorLoginFooter.js rename to src/components/views/auth/VectorLoginFooter.js diff --git a/src/components/views/login/VectorLoginHeader.js b/src/components/views/auth/VectorLoginHeader.js similarity index 100% rename from src/components/views/login/VectorLoginHeader.js rename to src/components/views/auth/VectorLoginHeader.js diff --git a/test/app-tests/loading.js b/test/app-tests/loading.js index 43ed448a..c6d8508d 100644 --- a/test/app-tests/loading.js +++ b/test/app-tests/loading.js @@ -254,7 +254,7 @@ describe('loading:', function() { return awaitLoginComponent(matrixChat).then(() => { // we expect a single component ReactTestUtils.findRenderedComponentWithType( - matrixChat, sdk.getComponent('structures.login.Login')); + matrixChat, sdk.getComponent('structures.auth.Login')); // the only outstanding request should be a GET /login // (in particular there should be no /register request for @@ -390,7 +390,7 @@ describe('loading:', function() { it('shows a login view', function() { // we expect a single component ReactTestUtils.findRenderedComponentWithType( - matrixChat, sdk.getComponent('structures.login.Login'), + matrixChat, sdk.getComponent('structures.auth.Login'), ); // the only outstanding request should be a GET /login @@ -554,7 +554,7 @@ describe('loading:', function() { // we expect a single component ReactTestUtils.findRenderedComponentWithType( - matrixChat, sdk.getComponent('structures.login.Login'), + matrixChat, sdk.getComponent('structures.auth.Login'), ); }); @@ -562,7 +562,7 @@ describe('loading:', function() { // ILAG renders this obsolete. I think. it('should allow us to return to the app', function() { const login = ReactTestUtils.findRenderedComponentWithType( - matrixChat, sdk.getComponent('structures.login.Login') + matrixChat, sdk.getComponent('structures.auth.Login') ); const linkText = 'Return to app'; @@ -630,7 +630,7 @@ describe('loading:', function() { function completeLogin(matrixChat) { // we expect a single component const login = ReactTestUtils.findRenderedComponentWithType( - matrixChat, sdk.getComponent('structures.login.Login')); + matrixChat, sdk.getComponent('structures.auth.Login')); httpBackend.when('POST', '/login').check(function(req) { expect(req.data.type).toEqual('m.login.password'); @@ -743,6 +743,6 @@ function awaitRoomView(matrixChat, retryLimit, retryCount) { function awaitLoginComponent(matrixChat, attempts) { return MatrixReactTestUtils.waitForRenderedComponentWithType( - matrixChat, sdk.getComponent('structures.login.Login'), attempts, + matrixChat, sdk.getComponent('structures.auth.Login'), attempts, ); }