Commits

Michael W Spalti authored b695da84878
Encoding removed.
No tags

src/app/+lookup-by-id/lookup-guard.spec.ts

Modified
15 15 });
16 16
17 17 it('should call findById with handle params', () => {
18 18 const scopedRoute = {
19 19 params: {
20 20 id: '1234',
21 21 idType: '123456789'
22 22 }
23 23 };
24 24 guard.canActivate(scopedRoute as any, undefined);
25 - expect(dsoService.findById).toHaveBeenCalledWith('123456789%2F1234', IdentifierType.HANDLE)
25 + expect(dsoService.findById).toHaveBeenCalledWith('123456789/1234', IdentifierType.HANDLE)
26 26 });
27 27
28 28 it('should call findById with handle params', () => {
29 29 const scopedRoute = {
30 30 params: {
31 31 id: '123456789%2F1234',
32 32 idType: 'handle'
33 33 }
34 34 };
35 35 guard.canActivate(scopedRoute as any, undefined);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut