From 48cf31d008f774d39b1128948096984a0c12aba1 Mon Sep 17 00:00:00 2001 From: Craig Yu Date: Tue, 24 Oct 2023 16:42:17 -0700 Subject: [PATCH] fix: remove code smells --- frontend/src/__test__/App.test.tsx | 4 ++-- frontend/src/__test__/views/Landing.test.tsx | 4 ++-- frontend/src/views/Landing/index.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/__test__/App.test.tsx b/frontend/src/__test__/App.test.tsx index 8c8d80daa..0a48d9f2e 100644 --- a/frontend/src/__test__/App.test.tsx +++ b/frontend/src/__test__/App.test.tsx @@ -1,9 +1,9 @@ /* eslint-disable no-undef */ import React from 'react'; import { render } from '@testing-library/react'; -import { test, vi } from 'vitest'; +import { test } from 'vitest'; import App from '../App'; -import { AuthContext } from '../contexts/AuthContext'; +import AuthContext from '../contexts/AuthContext'; import authContextMock from '../__test__/__mocks__/authContextMock'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; diff --git a/frontend/src/__test__/views/Landing.test.tsx b/frontend/src/__test__/views/Landing.test.tsx index d149d1c76..1ebbae868 100644 --- a/frontend/src/__test__/views/Landing.test.tsx +++ b/frontend/src/__test__/views/Landing.test.tsx @@ -5,8 +5,8 @@ import { render } from '@testing-library/react'; import renderer from 'react-test-renderer'; import Landing from '../../views/Landing'; import '@testing-library/jest-dom'; -import { describe, it, expect, vi } from 'vitest'; -import { AuthContext } from '../../contexts/AuthContext'; +import { describe, it, expect } from 'vitest'; +import AuthContext from '../../contexts/AuthContext'; import authContextMock from '../__mocks__/authContextMock'; describe('Landing component test', () => { diff --git a/frontend/src/views/Landing/index.tsx b/frontend/src/views/Landing/index.tsx index 9abfb6390..919ae214b 100644 --- a/frontend/src/views/Landing/index.tsx +++ b/frontend/src/views/Landing/index.tsx @@ -34,7 +34,7 @@ const Landing = () => {

Register and store your seed and meet your annual reforestation needs using - SPAR + {' SPAR'}

{/* Login buttons */}