diff options
author | crupest <crupest@outlook.com> | 2019-03-26 19:21:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-26 19:21:31 +0800 |
commit | e436cf9ebb4776e3c837f1b0935f3ea2bf254d79 (patch) | |
tree | 4181096cc9f4c08148faee4a115f5a6f44f05497 /Timeline/ClientApp/src/app/test-utilities/router-link.mock.ts | |
parent | 1834e12467b06d4a5f8a3610e93ed201502d872f (diff) | |
download | timeline-e436cf9ebb4776e3c837f1b0935f3ea2bf254d79.tar.gz timeline-e436cf9ebb4776e3c837f1b0935f3ea2bf254d79.tar.bz2 timeline-e436cf9ebb4776e3c837f1b0935f3ea2bf254d79.zip |
Add unit test.
Diffstat (limited to 'Timeline/ClientApp/src/app/test-utilities/router-link.mock.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/test-utilities/router-link.mock.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Timeline/ClientApp/src/app/test-utilities/router-link.mock.ts b/Timeline/ClientApp/src/app/test-utilities/router-link.mock.ts new file mode 100644 index 00000000..7f4cde4d --- /dev/null +++ b/Timeline/ClientApp/src/app/test-utilities/router-link.mock.ts @@ -0,0 +1,9 @@ +import { Directive, Input } from '@angular/core'; + +@Directive({ + /* tslint:disable-next-line:directive-selector*/ + selector: '[routerLink]' +}) +export class RouterLinkStubDirective { + @Input('routerLink') linkParams: any; +} |