Skip to content

Commit dd35847

Browse files
committed
chore(greenhouse): removed warnings
1 parent 1d0fc67 commit dd35847

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

apps/greenhouse/src/components/AuthProvider.test.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,15 @@ describe("AuthProvider", () => {
138138
const wrapper1 = ({ children }: any) => <AuthProvider options={{ mockAuth: 123 }}>{children}</AuthProvider>
139139
const { result: result1 } = renderHook(() => useAuth(), { wrapper: wrapper1 })
140140
expect(result1.current.loggedIn).toBe(false)
141-
expect(consoleWarnSpy).toHaveBeenCalledWith(
142-
expect.stringContaining("Invalid mockAuth value"),
143-
123
144-
)
141+
expect(consoleWarnSpy).toHaveBeenCalledWith(expect.stringContaining("Invalid mockAuth value"), 123)
145142

146143
consoleWarnSpy.mockClear()
147144

148145
// Test with array (invalid)
149146
const wrapper2 = ({ children }: any) => <AuthProvider options={{ mockAuth: [1, 2, 3] }}>{children}</AuthProvider>
150147
const { result: result2 } = renderHook(() => useAuth(), { wrapper: wrapper2 })
151148
expect(result2.current.loggedIn).toBe(false)
152-
expect(consoleWarnSpy).toHaveBeenCalledWith(
153-
expect.stringContaining("Invalid mockAuth value"),
154-
[1, 2, 3]
155-
)
149+
expect(consoleWarnSpy).toHaveBeenCalledWith(expect.stringContaining("Invalid mockAuth value"), [1, 2, 3])
156150

157151
consoleWarnSpy.mockRestore()
158152
})

0 commit comments

Comments
 (0)