Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test case for CliAuthToken
  • Loading branch information
bryphe-coder committed Feb 17, 2022
commit 9cc7e942388da63aac0cb334c2b830bf8a6384f8
16 changes: 16 additions & 0 deletions site/components/SignIn/CliAuthToken.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from "react"
import { screen } from "@testing-library/react"
import { render } from "../../test_helpers"

import { CliAuthToken } from "./CliAuthToken"

describe("CliAuthToken", () => {
it("renders content", async () => {
// When
render(<CliAuthToken sessionToken="test-token" />)

// Then
await screen.findByText("Session Token")
await screen.findByText("test-token")
})
})
2 changes: 1 addition & 1 deletion site/pages/cli-auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const CliAuthenticationPage: React.FC = () => {
)
}

const useStyles = makeStyles((theme) => ({
const useStyles = makeStyles(() => ({
root: {
width: "100vw",
height: "100vh",
Expand Down