Skip to content

Commit 9941c1c

Browse files
committed
Lint
1 parent a0717f8 commit 9941c1c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

site/src/pages/PreferencesPages/AccountPage/AccountPage.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ describe("AccountPage", () => {
3636
id: userId,
3737
...data,
3838
created_at: new Date().toString(),
39+
status: "active"
3940
}),
4041
)
4142
const { user } = renderPage()

site/src/pages/UsersPage/CreateUserPage/CreateUserPage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("Create User Page", () => {
4141
})
4242
it("shows generic error message", async () => {
4343
server.use(
44-
rest.post("/api/v2/users", (req, res, ctx) => {
44+
rest.post("/api/v2/users", () => {
4545
Promise.reject("something went wrong")
4646
}),
4747
)

site/src/pages/UsersPage/CreateUserPage/CreateUserPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Language = {
99
unknownError: "Oops, an unknown error occurred.",
1010
}
1111

12-
export const CreateUserPage = () => {
12+
export const CreateUserPage: React.FC = () => {
1313
const xServices = useContext(XServiceContext)
1414
const [usersState, usersSend] = useActor(xServices.usersXService)
1515
const { createUserError, createUserFormErrors } = usersState.context

site/src/testHelpers/entities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ export const MockUser: UserResponse = {
2525
username: "TestUser",
2626
email: "test@coder.com",
2727
created_at: "",
28-
status: "active"
28+
status: "active",
2929
}
3030

3131
export const MockUser2: UserResponse = {
3232
id: "test-user-2",
3333
username: "TestUser2",
3434
email: "test2@coder.com",
3535
created_at: "",
36-
status: "active"
36+
status: "active",
3737
}
3838

3939
export const MockPager: Pager = {

0 commit comments

Comments
 (0)