aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/components/OAuth2Button.test.tsx
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-01-03 05:47:07 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-01-03 05:47:07 +0300
commitd664ddc9b84b25922239e3bbc253b35ea54f2533 (patch)
treef1892f7e9b0880826b28a503aea312a97b0ea3a2 /src/tests/components/OAuth2Button.test.tsx
parentAdds EsLint (diff)
Fixes Preexisting Linting Issues
Fixes all errors, and most warnings generated by eslint. Most were fixed by eslint automatically such as indentation and quotes. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/tests/components/OAuth2Button.test.tsx')
-rw-r--r--src/tests/components/OAuth2Button.test.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/components/OAuth2Button.test.tsx b/src/tests/components/OAuth2Button.test.tsx
index 53875dc..f05159f 100644
--- a/src/tests/components/OAuth2Button.test.tsx
+++ b/src/tests/components/OAuth2Button.test.tsx
@@ -1,8 +1,8 @@
-import React from 'react';
-import { render } from '@testing-library/react';
+import React from "react";
+import { render } from "@testing-library/react";
import OAuth2Button from "../../components/OAuth2Button";
-test('renders oauth2 sign in button text', () => {
+test("renders oauth2 sign in button text", () => {
const { getByText } = render(<OAuth2Button />);
const button = getByText(/Sign in with Discord/i);
expect(button).toBeInTheDocument();
@@ -10,6 +10,6 @@ test('renders oauth2 sign in button text', () => {
test("renders fontawesome discord icon", () => {
const { container } = render(<OAuth2Button/>);
- const icon = container.querySelector(`[data-icon="discord"]`)
+ const icon = container.querySelector("[data-icon=\"discord\"]");
expect(icon).toBeInTheDocument();
-})
+});