Skip to content

Commit 9cc7e94

Browse files
committed
Add test case for CliAuthToken
1 parent a33d2c7 commit 9cc7e94

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from "react"
2+
import { screen } from "@testing-library/react"
3+
import { render } from "../../test_helpers"
4+
5+
import { CliAuthToken } from "./CliAuthToken"
6+
7+
describe("CliAuthToken", () => {
8+
it("renders content", async () => {
9+
// When
10+
render(<CliAuthToken sessionToken="test-token" />)
11+
12+
// Then
13+
await screen.findByText("Session Token")
14+
await screen.findByText("test-token")
15+
})
16+
})

site/pages/cli-auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const CliAuthenticationPage: React.FC = () => {
3131
)
3232
}
3333

34-
const useStyles = makeStyles((theme) => ({
34+
const useStyles = makeStyles(() => ({
3535
root: {
3636
width: "100vw",
3737
height: "100vh",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy