Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peturgq committed Sep 22, 2022
1 parent 92b0156 commit 3586b4b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ const mockJudgeQuery = {

describe('UserProvider', () => {
test('should load the user', async () => {
const useRouter = jest.spyOn(require('next/router'), 'useRouter')
useRouter.mockImplementation(() => ({
pathname: 'test',
}))

render(
<MockedProvider mocks={[mockJudgeQuery]} addTypename={false}>
<UserProvider authenticated={true}>
Expand Down
2 changes: 1 addition & 1 deletion apps/skilavottord/web/screens/CompanyInfo/CompanyInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const CompanyInfo: FC = () => {
},
{
text: `${partner.website}`,
href: partner.website,
href: partner.website as string | undefined,
},
].filter(Boolean)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const CompanyList = () => {
},
{
text: `${partner.website}`,
href: partner.website,
href: partner.website as string | undefined,
},
]}
/>
Expand Down
2 changes: 1 addition & 1 deletion libs/clients/middlewares/src/lib/e2e/enhancedFetch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ describe('Enhanced Fetch against https server', () => {
await expect(response.text()).resolves.toBe('{"result":"success"}')
})

xit('should support client certificate', async () => {
it('should support client certificate', async () => {
// Arrange
const fetch = createEnhancedFetch({
name: 'test',
Expand Down

0 comments on commit 3586b4b

Please sign in to comment.