From b5581df3fdfaed2f84da2ca8b9206e485eb90102 Mon Sep 17 00:00:00 2001 From: joerger Date: Wed, 8 Jan 2025 11:27:02 -0800 Subject: [PATCH] Fix lint. --- web/packages/teleport/src/Teleport.tsx | 11 ++++------- .../teleport/src/services/joinToken/joinToken.test.ts | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/web/packages/teleport/src/Teleport.tsx b/web/packages/teleport/src/Teleport.tsx index f192b6948bb39..8dce3f6460c0d 100644 --- a/web/packages/teleport/src/Teleport.tsx +++ b/web/packages/teleport/src/Teleport.tsx @@ -38,16 +38,13 @@ import { LoginClose } from './Login/LoginClose'; import { LoginFailedComponent as LoginFailed } from './Login/LoginFailed'; import { LoginSuccess } from './Login/LoginSuccess'; import { LoginTerminalRedirect } from './Login/LoginTerminalRedirect'; -import { SingleLogoutFailed } from './SingleLogoutFailed'; -import { Welcome } from './Welcome'; - -import { Player } from './Player'; - -import { MfaContextProvider } from './MFAContext/MFAContext'; - import { Main } from './Main'; +import { MfaContextProvider } from './MFAContext/MFAContext'; +import { Player } from './Player'; +import { SingleLogoutFailed } from './SingleLogoutFailed'; import TeleportContext from './teleportContext'; import TeleportContextProvider from './TeleportContextProvider'; +import { Welcome } from './Welcome'; const Teleport: React.FC = props => { const { ctx, history } = props; diff --git a/web/packages/teleport/src/services/joinToken/joinToken.test.ts b/web/packages/teleport/src/services/joinToken/joinToken.test.ts index 54b678b3f3b69..a748a55cbbcdd 100644 --- a/web/packages/teleport/src/services/joinToken/joinToken.test.ts +++ b/web/packages/teleport/src/services/joinToken/joinToken.test.ts @@ -20,9 +20,9 @@ import cfg from 'teleport/config'; import api from 'teleport/services/api'; import auth from '../auth/auth'; - import JoinTokenService from './joinToken'; import type { JoinTokenRequest } from './types'; + test('fetchJoinToken with an empty request properly sets defaults', async () => { const svc = new JoinTokenService(); jest.spyOn(api, 'post').mockResolvedValue(null);