-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use query parameter instead of hidden route parameter for p…
…unchout type context information Co-authored-by: Susanne Schneider <[email protected]>
- Loading branch information
1 parent
28d9846
commit abba089
Showing
9 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ describe('Punchout Users Effects', () => { | |
|
||
describe('loadDetailedUser$', () => { | ||
it('should call the service for retrieving user', done => { | ||
router.navigate(['/account/punchout/[email protected]', { format: 'oci' }]); | ||
router.navigate(['/account/punchout/[email protected]'], { queryParams: { format: 'oci' } }); | ||
|
||
effects.loadDetailedUser$.subscribe(() => { | ||
verify(punchoutService.getUsers('oci')).once(); | ||
|
@@ -147,7 +147,7 @@ describe('Punchout Users Effects', () => { | |
message: "account.punchout.user.created.message" | ||
messageParams: {"0":"[email protected]"} | ||
`); | ||
expect(location.path()).toMatchInlineSnapshot(`"/account/punchout;format=oci"`); | ||
expect(location.path()).toMatchInlineSnapshot(`"/account/punchout?format=oci"`); | ||
}, | ||
error: fail, | ||
complete: done, | ||
|
@@ -191,7 +191,7 @@ describe('Punchout Users Effects', () => { | |
message: "account.punchout.user.updated.message" | ||
messageParams: {"0":"[email protected]"} | ||
`); | ||
expect(location.path()).toMatchInlineSnapshot(`"/account/punchout;format=oci"`); | ||
expect(location.path()).toMatchInlineSnapshot(`"/account/punchout?format=oci"`); | ||
}, | ||
error: fail, | ||
complete: done, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters