diff options
author | crupest <crupest@outlook.com> | 2019-03-17 21:57:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-17 21:57:24 +0800 |
commit | 08e649e349f22b829bf090719de0395627923056 (patch) | |
tree | 9a2ba2108ca88d262e9ad71805fa303f14d4b45c /Timeline/ClientApp/src/app/test-utilities/activated-route.mock.ts | |
parent | 1158c85071e7a8132b42df9481141c107eeee657 (diff) | |
download | timeline-08e649e349f22b829bf090719de0395627923056.tar.gz timeline-08e649e349f22b829bf090719de0395627923056.tar.bz2 timeline-08e649e349f22b829bf090719de0395627923056.zip |
Add unit test.
Diffstat (limited to 'Timeline/ClientApp/src/app/test-utilities/activated-route.mock.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/test-utilities/activated-route.mock.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Timeline/ClientApp/src/app/test-utilities/activated-route.mock.ts b/Timeline/ClientApp/src/app/test-utilities/activated-route.mock.ts index 72707c5e..40484387 100644 --- a/Timeline/ClientApp/src/app/test-utilities/activated-route.mock.ts +++ b/Timeline/ClientApp/src/app/test-utilities/activated-route.mock.ts @@ -3,9 +3,7 @@ import { ParamMap, ActivatedRouteSnapshot, ActivatedRoute } from '@angular/route import { Observable, BehaviorSubject } from 'rxjs'; import { map } from 'rxjs/operators'; -export type PartialMock<T> = { - [P in keyof T]?: T[P] | PartialMock<T[P]>; -}; +import { PartialMock } from './mock'; export interface ParamMapCreator { [name: string]: string | string[]; } |