Skip to content

Commit

Permalink
fix: remove code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu committed Oct 24, 2023
1 parent 4d896cd commit 48cf31d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/__test__/App.test.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/__test__/views/Landing.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Landing = () => {
<p data-testid="landing-desc" className="landing-desc">
Register and store your seed and meet your annual
reforestation needs using
<span className="spar-span"> SPAR</span>
<span className="spar-span">{' SPAR'}</span>
</p>

{/* Login buttons */}
Expand Down

0 comments on commit 48cf31d

Please sign in to comment.