Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Feb 24, 2022
1 parent a3b8ebf commit 09828ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion tests/jest/components/OAuthConnectButton.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('OAuthConnectButton.vue Test', () => {
wrapper.find('button').trigger('click')
await localVue.nextTick()
expect(window.location.replace).toHaveBeenCalledWith(
expect.stringMatching(/http:\/\/openproject\/oauth\/&state=[a-z0-9]{9}/),
expect.stringMatching(/http:\/\/openproject\/oauth\/&state=[a-z0-9]{8}/),
)
})
})
Expand Down
2 changes: 0 additions & 2 deletions tests/lib/Controller/ConfigControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ public function setUpMocks(): void {
->method('getUserValue')
->withConsecutive(
['testUser', 'integration_openproject', 'oauth_state'],
['testUser', 'integration_openproject', 'redirect_uri'],
['testUser', 'integration_openproject', 'refresh_token'],
)
->willReturnOnConsecutiveCalls(
'randomString',
'http://redirect.back.to.here/some/url',
'oAuthRefreshToken',
);

Expand Down

0 comments on commit 09828ec

Please sign in to comment.