From 5fc0ae33714c761929a4e1e239a65f413ea07a5d Mon Sep 17 00:00:00 2001 From: MG Date: Wed, 20 Jan 2021 21:42:40 +0100 Subject: [PATCH] fix: fixing doc urls --- lib/common/func.get-mocked-ng-def-of.ts | 10 +-- lib/common/func.get-source-of-mock.ts | 12 +-- .../func.is-mock-control-value-accessor.ts | 2 +- lib/common/func.is-mock-of.ts | 10 +-- lib/common/func.is-mock-validator.ts | 2 +- lib/common/func.is-mocked-ng-def-of.ts | 10 +-- lib/common/func.is-ng-def.ts | 14 +-- lib/common/func.is-ng-injection-token.ts | 2 +- lib/common/mock-control-value-accessor.ts | 20 ++--- lib/mock-builder/mock-builder.ts | 2 +- lib/mock-builder/types.ts | 34 +++---- lib/mock-component/mock-component.ts | 2 +- lib/mock-directive/mock-directive.ts | 2 +- lib/mock-helper/mock-helper.ts | 90 +++++++++---------- lib/mock-instance/mock-instance.ts | 14 +-- lib/mock-module/mock-module.ts | 4 +- lib/mock-pipe/mock-pipe.ts | 4 +- lib/mock-provider/mock-provider.ts | 6 +- lib/mock-render/mock-render.ts | 18 ++-- lib/mock-service/mock-service.ts | 8 +- 20 files changed, 133 insertions(+), 133 deletions(-) diff --git a/lib/common/func.get-mocked-ng-def-of.ts b/lib/common/func.get-mocked-ng-def-of.ts index 4724988634..ad54a8b802 100644 --- a/lib/common/func.get-mocked-ng-def-of.ts +++ b/lib/common/func.get-mocked-ng-def-of.ts @@ -28,35 +28,35 @@ const getMock = (declaration: any, source: any, mocks?: Map) => { /** * Returns a def of a mock module based on a mock module or a source module. * - * @see https://github.com/ike18t/ng-mocks#getmockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/getMockedNgDefOf */ export function getMockedNgDefOf(declaration: AnyType, type: 'm'): Type>; /** * Returns a def of a mock component based on a mock component or a source component. * - * @see https://github.com/ike18t/ng-mocks#getmockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/getMockedNgDefOf */ export function getMockedNgDefOf(declaration: AnyType, type: 'c'): Type>; /** * Returns a def of a mock directive based on a mock directive or a source directive. * - * @see https://github.com/ike18t/ng-mocks#getmockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/getMockedNgDefOf */ export function getMockedNgDefOf(declaration: AnyType, type: 'd'): Type>; /** * Returns a def of a mock pipe based on a mock pipe or a source pipe. * - * @see https://github.com/ike18t/ng-mocks#getmockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/getMockedNgDefOf */ export function getMockedNgDefOf(declaration: AnyType, type: 'p'): Type>; /** * Returns a def of a mock class based on a mock class or a source class decorated by a ng type. * - * @see https://github.com/ike18t/ng-mocks#getmockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/getMockedNgDefOf */ export function getMockedNgDefOf(declaration: AnyType): Type; diff --git a/lib/common/func.get-source-of-mock.ts b/lib/common/func.get-source-of-mock.ts index 21005585c4..67fc89a775 100644 --- a/lib/common/func.get-source-of-mock.ts +++ b/lib/common/func.get-source-of-mock.ts @@ -8,42 +8,42 @@ import { Type } from './core.types'; /** * Returns an original type. * - * @see https://github.com/ike18t/ng-mocks#getsourceofmock + * @see https://ng-mocks.sudo.eu/api/helpers/getSourceOfMock */ export function getSourceOfMock(declaration: Type>): Type; /** * Returns an original type. * - * @see https://github.com/ike18t/ng-mocks#getsourceofmock + * @see https://ng-mocks.sudo.eu/api/helpers/getSourceOfMock */ export function getSourceOfMock(declaration: Type>): Type; /** * Returns an original type. * - * @see https://github.com/ike18t/ng-mocks#getsourceofmock + * @see https://ng-mocks.sudo.eu/api/helpers/getSourceOfMock */ export function getSourceOfMock(declaration: Type>): Type; /** * Returns an original type. * - * @see https://github.com/ike18t/ng-mocks#getsourceofmock + * @see https://ng-mocks.sudo.eu/api/helpers/getSourceOfMock */ export function getSourceOfMock(declaration: Type>): Type; /** * Returns an original type. * - * @see https://github.com/ike18t/ng-mocks#getsourceofmock + * @see https://ng-mocks.sudo.eu/api/helpers/getSourceOfMock */ export function getSourceOfMock(declaration: Type): Type; /** * Returns an original type. * - * @see https://github.com/ike18t/ng-mocks#getsourceofmock + * @see https://ng-mocks.sudo.eu/api/helpers/getSourceOfMock */ export function getSourceOfMock(declaration: any): Type { return typeof declaration === 'function' && declaration.mockOf ? declaration.mockOf : declaration; diff --git a/lib/common/func.is-mock-control-value-accessor.ts b/lib/common/func.is-mock-control-value-accessor.ts index 25ae64b152..8c6828b04d 100644 --- a/lib/common/func.is-mock-control-value-accessor.ts +++ b/lib/common/func.is-mock-control-value-accessor.ts @@ -2,7 +2,7 @@ import funcIsMock from './func.is-mock'; import { MockControlValueAccessor } from './mock-control-value-accessor'; /** - * @see https://github.com/ike18t/ng-mocks#ismockcontrolvalueaccessor + * @see https://ng-mocks.sudo.eu/api/helpers/isMockControlValueAccessor */ export const isMockControlValueAccessor = (value: T): value is T & MockControlValueAccessor => { if (!funcIsMock(value)) { diff --git a/lib/common/func.is-mock-of.ts b/lib/common/func.is-mock-of.ts index d123b3203c..3c9807a432 100644 --- a/lib/common/func.is-mock-of.ts +++ b/lib/common/func.is-mock-of.ts @@ -12,28 +12,28 @@ import { isNgDef } from './func.is-ng-def'; /** * Checks whether the instance derives from a mock module. * - * @see https://github.com/ike18t/ng-mocks#ismockof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockOf */ export function isMockOf(instance: any, declaration: Type, ngType: 'm'): instance is MockedModule; /** * Checks whether the instance derives from a mock component. * - * @see https://github.com/ike18t/ng-mocks#ismockof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockOf */ export function isMockOf(instance: any, declaration: Type, ngType: 'c'): instance is MockedComponent; /** * Checks whether the instance derives from a mock directive. * - * @see https://github.com/ike18t/ng-mocks#ismockof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockOf */ export function isMockOf(instance: any, declaration: Type, ngType: 'd'): instance is MockedDirective; /** * Checks whether the instance derives from a mock pipe. * - * @see https://github.com/ike18t/ng-mocks#ismockof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockOf */ export function isMockOf( instance: any, @@ -44,7 +44,7 @@ export function isMockOf( /** * Checks whether the instance derives from a mock type. * - * @see https://github.com/ike18t/ng-mocks#ismockof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockOf */ export function isMockOf(instance: any, declaration: Type): instance is T; diff --git a/lib/common/func.is-mock-validator.ts b/lib/common/func.is-mock-validator.ts index e0ee3703ff..d286c87222 100644 --- a/lib/common/func.is-mock-validator.ts +++ b/lib/common/func.is-mock-validator.ts @@ -2,7 +2,7 @@ import funcIsMock from './func.is-mock'; import { MockValidator } from './mock-control-value-accessor'; /** - * @see https://github.com/ike18t/ng-mocks#ismockvalidator + * @see https://ng-mocks.sudo.eu/api/helpers/isMockValidator */ export const isMockValidator = (value: T): value is T & MockValidator => { if (!funcIsMock(value)) { diff --git a/lib/common/func.is-mocked-ng-def-of.ts b/lib/common/func.is-mocked-ng-def-of.ts index 71bd940294..b4696a94e1 100644 --- a/lib/common/func.is-mocked-ng-def-of.ts +++ b/lib/common/func.is-mocked-ng-def-of.ts @@ -11,14 +11,14 @@ import { isNgDef } from './func.is-ng-def'; /** * Checks whether the declaration is a mock one and derives from the specified module. * - * @see https://github.com/ike18t/ng-mocks#ismockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockedNgDefOf */ export function isMockedNgDefOf(declaration: any, type: Type, ngType: 'm'): declaration is Type>; /** * Checks whether the declaration is a mock one and derives from the specified component. * - * @see https://github.com/ike18t/ng-mocks#ismockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockedNgDefOf */ export function isMockedNgDefOf( declaration: any, @@ -29,7 +29,7 @@ export function isMockedNgDefOf( /** * Checks whether the declaration is a mock one and derives from the specified directive. * - * @see https://github.com/ike18t/ng-mocks#ismockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockedNgDefOf */ export function isMockedNgDefOf( declaration: any, @@ -40,7 +40,7 @@ export function isMockedNgDefOf( /** * Checks whether the declaration is a mock one and derives from the specified pipe. * - * @see https://github.com/ike18t/ng-mocks#ismockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockedNgDefOf */ export function isMockedNgDefOf( declaration: any, @@ -51,7 +51,7 @@ export function isMockedNgDefOf( /** * Checks whether the declaration is a mock one and derives from the specified type. * - * @see https://github.com/ike18t/ng-mocks#ismockedngdefof + * @see https://ng-mocks.sudo.eu/api/helpers/isMockedNgDefOf */ export function isMockedNgDefOf(declaration: any, type: Type): declaration is Type; diff --git a/lib/common/func.is-ng-def.ts b/lib/common/func.is-ng-def.ts index 37fd4ee083..92679a6a82 100644 --- a/lib/common/func.is-ng-def.ts +++ b/lib/common/func.is-ng-def.ts @@ -16,49 +16,49 @@ const isInjectableCheck = (def: any, ngType?: string): boolean => /** * Checks whether a class was decorated by @NgModule. * - * @see https://github.com/ike18t/ng-mocks#isngdef + * @see https://ng-mocks.sudo.eu/api/helpers/isNgDef */ export function isNgDef(declaration: any, ngType: 'm'): declaration is Type; /** * Checks whether a class was decorated by @Component. * - * @see https://github.com/ike18t/ng-mocks#isngdef + * @see https://ng-mocks.sudo.eu/api/helpers/isNgDef */ export function isNgDef(declaration: any, ngType: 'c'): declaration is Type; /** * Checks whether a class was decorated by @Directive. * - * @see https://github.com/ike18t/ng-mocks#isngdef + * @see https://ng-mocks.sudo.eu/api/helpers/isNgDef */ export function isNgDef(declaration: any, ngType: 'd'): declaration is Type; /** * Checks whether a class was decorated by @Pipe. * - * @see https://github.com/ike18t/ng-mocks#isngdef + * @see https://ng-mocks.sudo.eu/api/helpers/isNgDef */ export function isNgDef(declaration: any, ngType: 'p'): declaration is Type; /** * Checks whether a class was decorated by @Injectable. * - * @see https://github.com/ike18t/ng-mocks#isngdef + * @see https://ng-mocks.sudo.eu/api/helpers/isNgDef */ export function isNgDef(declaration: any, ngType: 'i'): declaration is Type; /** * Checks whether a class was decorated by @Injectable. * - * @see https://github.com/ike18t/ng-mocks#isngdef + * @see https://ng-mocks.sudo.eu/api/helpers/isNgDef */ export function isNgDef(declaration: any, ngType: 't'): declaration is InjectionToken; /** * Checks whether a class was decorated by a ng type. * - * @see https://github.com/ike18t/ng-mocks#isngdef + * @see https://ng-mocks.sudo.eu/api/helpers/isNgDef */ export function isNgDef(declaration: any): declaration is Type; diff --git a/lib/common/func.is-ng-injection-token.ts b/lib/common/func.is-ng-injection-token.ts index 62ccc7ae0b..43b6c73b06 100644 --- a/lib/common/func.is-ng-injection-token.ts +++ b/lib/common/func.is-ng-injection-token.ts @@ -3,7 +3,7 @@ import { InjectionToken } from '@angular/core'; /** * Checks whether a variable is a real token. * - * @see https://github.com/ike18t/ng-mocks#isnginjectiontoken + * @see https://ng-mocks.sudo.eu/api/helpers/isNgInjectionToken */ export const isNgInjectionToken = (token: any): token is InjectionToken => token && typeof token === 'object' && token.ngMetadataName === 'InjectionToken'; diff --git a/lib/common/mock-control-value-accessor.ts b/lib/common/mock-control-value-accessor.ts index 4c941370e6..b469d5b4b2 100644 --- a/lib/common/mock-control-value-accessor.ts +++ b/lib/common/mock-control-value-accessor.ts @@ -4,13 +4,13 @@ import { Mock } from './mock'; /** * @deprecated use isMockControlValueAccessor or isMockValidator instead - * @see https://github.com/ike18t/ng-mocks#ismockcontrolvalueaccessor - * @see https://github.com/ike18t/ng-mocks#ismockvalidator + * @see https://ng-mocks.sudo.eu/api/helpers/isMockControlValueAccessor + * @see https://ng-mocks.sudo.eu/api/helpers/isMockValidator */ export class LegacyControlValueAccessor extends Mock { /** * @deprecated use isMockControlValueAccessor instead - * @see https://github.com/ike18t/ng-mocks#ismockcontrolvalueaccessor + * @see https://ng-mocks.sudo.eu/api/helpers/isMockControlValueAccessor */ public __simulateChange(value: any): void; // istanbul ignore next @@ -21,7 +21,7 @@ export class LegacyControlValueAccessor extends Mock { // istanbul ignore next /** * @deprecated use isMockControlValueAccessor instead - * @see https://github.com/ike18t/ng-mocks#ismockcontrolvalueaccessor + * @see https://ng-mocks.sudo.eu/api/helpers/isMockControlValueAccessor */ public __simulateTouch() { // nothing to do. @@ -30,7 +30,7 @@ export class LegacyControlValueAccessor extends Mock { // istanbul ignore next /** * @deprecated use isMockValidator instead - * @see https://github.com/ike18t/ng-mocks#ismockvalidator + * @see https://ng-mocks.sudo.eu/api/helpers/isMockValidator */ public __simulateValidatorChange() { // nothing to do. @@ -38,26 +38,26 @@ export class LegacyControlValueAccessor extends Mock { } /** - * @see https://github.com/ike18t/ng-mocks#ismockcontrolvalueaccessor + * @see https://ng-mocks.sudo.eu/api/helpers/isMockControlValueAccessor */ export interface MockControlValueAccessor { /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-form-controls + * @see https://ng-mocks.sudo.eu/extra/mock-form-controls */ __simulateChange(value: any): void; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-form-controls + * @see https://ng-mocks.sudo.eu/extra/mock-form-controls */ __simulateTouch(): void; } /** - * @see https://github.com/ike18t/ng-mocks#ismockvalidator + * @see https://ng-mocks.sudo.eu/api/helpers/isMockValidator */ export interface MockValidator { /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-form-controls + * @see https://ng-mocks.sudo.eu/extra/mock-form-controls */ __simulateValidatorChange(): void; } diff --git a/lib/mock-builder/mock-builder.ts b/lib/mock-builder/mock-builder.ts index 86c91bee57..bf2f1836cb 100644 --- a/lib/mock-builder/mock-builder.ts +++ b/lib/mock-builder/mock-builder.ts @@ -113,7 +113,7 @@ const resetTestingModule = ( }; /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder + * @see https://ng-mocks.sudo.eu/api/MockBuilder */ export function MockBuilder( keepDeclaration?: string | AnyType | InjectionToken | null | undefined, diff --git a/lib/mock-builder/types.ts b/lib/mock-builder/types.ts index 0b1842b723..d831d5c8fe 100644 --- a/lib/mock-builder/types.ts +++ b/lib/mock-builder/types.ts @@ -8,26 +8,26 @@ export interface IMockBuilderResult { } export interface IMockBuilderConfigAll { /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder-dependency-flag + * @see https://ng-mocks.sudo.eu/api/MockBuilder#dependency-flag */ dependency?: boolean; // /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder-export-flag + * @see https://ng-mocks.sudo.eu/api/MockBuilder#export-flag */ export?: boolean; } export interface IMockBuilderConfigModule { /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder-exportall-flag + * @see https://ng-mocks.sudo.eu/api/MockBuilder#exportall-flag */ exportAll?: boolean; } export interface IMockBuilderConfigComponent { /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder-render-flag + * @see https://ng-mocks.sudo.eu/api/MockBuilder#render-flag */ render?: { [blockName: string]: @@ -41,7 +41,7 @@ export interface IMockBuilderConfigComponent { export interface IMockBuilderConfigDirective { /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder-render-flag + * @see https://ng-mocks.sudo.eu/api/MockBuilder#render-flag */ render?: | boolean @@ -53,7 +53,7 @@ export interface IMockBuilderConfigDirective { export interface IMockBuilderConfigMock { /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder-precise-flag + * @see https://ng-mocks.sudo.eu/api/MockBuilder#precise-flag */ precise?: boolean; } @@ -68,37 +68,37 @@ export interface IMockBuilder extends Promise { beforeCompileComponents(callback: (testBed: typeof TestBed) => void): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuilder-factory + * @see https://ng-mocks.sudo.eu/api/MockBuilder#factory-function */ build(): NgModule; /** - * @see https://github.com/ike18t/ng-mocks#mockbuilderexclude + * @see https://ng-mocks.sudo.eu/api/MockBuilder#exclude */ exclude(def: any): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuilderkeep + * @see https://ng-mocks.sudo.eu/api/MockBuilder#keep */ keep(def: any, config?: IMockBuilderConfigAll & IMockBuilderConfigModule): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuildermock + * @see https://ng-mocks.sudo.eu/api/MockBuilder#mock */ mock(pipe: AnyType, mock: T['transform'], config?: IMockBuilderConfig): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuildermock + * @see https://ng-mocks.sudo.eu/api/MockBuilder#mock */ mock(provider: string, mock: T, config?: IMockBuilderConfig): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuildermock + * @see https://ng-mocks.sudo.eu/api/MockBuilder#mock */ mock(token: InjectionToken, mock: InjectionToken | T | undefined, config?: IMockBuilderConfig): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuildermock + * @see https://ng-mocks.sudo.eu/api/MockBuilder#mock */ mock( provider: AnyType, @@ -107,22 +107,22 @@ export interface IMockBuilder extends Promise { ): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuildermock + * @see https://ng-mocks.sudo.eu/api/MockBuilder#mock */ mock(def: AnyType, config: IMockBuilderConfig): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuildermock + * @see https://ng-mocks.sudo.eu/api/MockBuilder#mock */ mock(def: any): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuilderprovide + * @see https://ng-mocks.sudo.eu/api/MockBuilder#provide */ provide(def: Provider): this; /** - * @see https://github.com/ike18t/ng-mocks#mockbuilderreplace + * @see https://ng-mocks.sudo.eu/api/MockBuilder#replace */ replace( source: AnyType, diff --git a/lib/mock-component/mock-component.ts b/lib/mock-component/mock-component.ts index 59af2eb80a..2d43e9ff56 100644 --- a/lib/mock-component/mock-component.ts +++ b/lib/mock-component/mock-component.ts @@ -138,7 +138,7 @@ export function MockComponents(...components: Array>): Array(component: Type): Type> { // We are inside of an 'it'. It is fine to to return a mock copy. diff --git a/lib/mock-directive/mock-directive.ts b/lib/mock-directive/mock-directive.ts index 56d6618674..ede6b7ed58 100644 --- a/lib/mock-directive/mock-directive.ts +++ b/lib/mock-directive/mock-directive.ts @@ -73,7 +73,7 @@ export function MockDirectives(...directives: Array>): Array(directive: Type): Type> { // We are inside of an 'it'. diff --git a/lib/mock-helper/mock-helper.ts b/lib/mock-helper/mock-helper.ts index 6547bcb42f..f3ed5893a3 100644 --- a/lib/mock-helper/mock-helper.ts +++ b/lib/mock-helper/mock-helper.ts @@ -31,21 +31,21 @@ import mockHelperStubMember from './mock-helper.stub-member'; import mockHelperThrowOnConsole from './mock-helper.throw-on-console'; /** - * @see https://github.com/ike18t/ng-mocks#ngmocks + * @see https://ng-mocks.sudo.eu/api/ngMocks */ export const ngMocks: { /** - * @see https://github.com/ike18t/ng-mocks#auto-spy + * @see https://ng-mocks.sudo.eu/extra/auto-spy */ autoSpy(type: 'jasmine' | 'jest' | 'default' | 'reset'): void; /** - * @see https://github.com/ike18t/ng-mocks#auto-spy + * @see https://ng-mocks.sudo.eu/extra/auto-spy */ autoSpy(type: CustomMockFunction): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksdefaultmock + * @see https://ng-mocks.sudo.eu/api/ngMocks/defaultMock */ defaultMock( token: InjectionToken, @@ -53,7 +53,7 @@ export const ngMocks: { ): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksdefaultmock + * @see https://ng-mocks.sudo.eu/api/ngMocks/defaultMock */ defaultMock( token: string, @@ -61,32 +61,32 @@ export const ngMocks: { ): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksdefaultmock + * @see https://ng-mocks.sudo.eu/api/ngMocks/defaultMock */ defaultMock(def: AnyType, handler?: (value: T, injector: Injector) => void | Partial): void; /** - * @see https://github.com/ike18t/ng-mocks#making-angular-tests-faster + * @see https://ng-mocks.sudo.eu/api/ngMocks/faster */ faster(): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find(component: Type): MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find(debugElement: MockedDebugElement | ComponentFixture, component: Type): MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find(component: Type, notFoundValue: D): D | MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find( debugElement: MockedDebugElement | ComponentFixture, @@ -95,22 +95,22 @@ export const ngMocks: { ): D | MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find(cssSelector: string): MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find(debugElement: MockedDebugElement | ComponentFixture, cssSelector: string): MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find(cssSelector: string, notFoundValue: D): D | MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfind + * @see https://ng-mocks.sudo.eu/api/ngMocks/find */ find( debugElement: MockedDebugElement | ComponentFixture, @@ -119,12 +119,12 @@ export const ngMocks: { ): D | MockedDebugElement; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindall + * @see https://ng-mocks.sudo.eu/api/ngMocks/findAll */ findAll(component: Type): Array>; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindall + * @see https://ng-mocks.sudo.eu/api/ngMocks/findAll */ findAll( debugElement: MockedDebugElement | ComponentFixture, @@ -132,12 +132,12 @@ export const ngMocks: { ): Array>; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindall + * @see https://ng-mocks.sudo.eu/api/ngMocks/findAll */ findAll(cssSelector: string): Array>; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindall + * @see https://ng-mocks.sudo.eu/api/ngMocks/findAll */ findAll( debugElement: MockedDebugElement | ComponentFixture, @@ -145,22 +145,22 @@ export const ngMocks: { ): Array>; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindinstance + * @see https://ng-mocks.sudo.eu/api/ngMocks/findInstance */ findInstance(instanceClass: Type): T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindinstance + * @see https://ng-mocks.sudo.eu/api/ngMocks/findInstance */ findInstance(debugNode: MockedDebugNode | ComponentFixture, instanceClass: Type): T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindinstance + * @see https://ng-mocks.sudo.eu/api/ngMocks/findInstance */ findInstance(instanceClass: Type, notFoundValue: D): D | T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindinstance + * @see https://ng-mocks.sudo.eu/api/ngMocks/findInstance */ findInstance( debugNode: MockedDebugNode | ComponentFixture, @@ -169,57 +169,57 @@ export const ngMocks: { ): D | T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindinstances + * @see https://ng-mocks.sudo.eu/api/ngMocks/findInstances */ findInstances(instanceClass: Type): T[]; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksfindinstances + * @see https://ng-mocks.sudo.eu/api/ngMocks/findInstances */ findInstances(debugNode: MockedDebugNode | ComponentFixture, instanceClass: Type): T[]; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksflushtestbed + * @see https://ng-mocks.sudo.eu/api/ngMocks/flushTestBed */ flushTestBed(): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksget + * @see https://ng-mocks.sudo.eu/api/ngMocks/get */ get(debugNode: MockedDebugNode, directive: Type): T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksget + * @see https://ng-mocks.sudo.eu/api/ngMocks/get */ get(debugNode: MockedDebugNode, directive: Type, notFoundValue: D): D | T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksglobalexclude + * @see https://ng-mocks.sudo.eu/api/ngMocks/globalExclude */ globalExclude(source: AnyType | InjectionToken): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksglobalkeep + * @see https://ng-mocks.sudo.eu/api/ngMocks/globalKeep */ globalKeep(source: AnyType | InjectionToken): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksglobalmock + * @see https://ng-mocks.sudo.eu/api/ngMocks/globalMock */ globalMock(source: AnyType | InjectionToken): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksglobalreplace + * @see https://ng-mocks.sudo.eu/api/ngMocks/globalReplace */ globalReplace(source: AnyType, destination: AnyType): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksglobalwipe + * @see https://ng-mocks.sudo.eu/api/ngMocks/globalWipe */ globalWipe(source: AnyType | InjectionToken): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksguts + * @see https://ng-mocks.sudo.eu/api/ngMocks/guts */ guts( keep: @@ -241,42 +241,42 @@ export const ngMocks: { ): TestModuleMetadata; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksinput + * @see https://ng-mocks.sudo.eu/api/ngMocks/input */ input(debugNode: MockedDebugNode, input: string): T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksinput + * @see https://ng-mocks.sudo.eu/api/ngMocks/input */ input(debugNode: MockedDebugNode, input: string, notFoundValue: D): D | T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksoutput + * @see https://ng-mocks.sudo.eu/api/ngMocks/output */ output(debugNode: MockedDebugNode, output: string): EventEmitter; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksoutput + * @see https://ng-mocks.sudo.eu/api/ngMocks/output */ output(debugNode: MockedDebugNode, output: string, notFoundValue: D): D | EventEmitter; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksreset + * @see https://ng-mocks.sudo.eu/api/ngMocks/reset */ reset(): void; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksstub + * @see https://ng-mocks.sudo.eu/api/ngMocks/stub */ stub(instance: I, name: keyof I, style?: 'get' | 'set'): T; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksstub + * @see https://ng-mocks.sudo.eu/api/ngMocks/stub */ stub(instance: I, overrides: Partial): I; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksstubmember + * @see https://ng-mocks.sudo.eu/api/ngMocks/stubMember */ stubMember T[K]>( instance: T, @@ -286,7 +286,7 @@ export const ngMocks: { ): S; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksstubmember + * @see https://ng-mocks.sudo.eu/api/ngMocks/stubMember */ stubMember void>( instance: T, @@ -296,14 +296,14 @@ export const ngMocks: { ): S; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksstubmember + * @see https://ng-mocks.sudo.eu/api/ngMocks/stubMember */ stubMember(instance: T, name: K, stub: S): S; /** * Thanks Ivy, it does not throw an error and we have to use injector. * - * @see https://github.com/ike18t/ng-mocks#ngmocksthrowonconsole + * @see https://ng-mocks.sudo.eu/api/ngMocks/throwOnConsole */ throwOnConsole(): void; } = { diff --git a/lib/mock-instance/mock-instance.ts b/lib/mock-instance/mock-instance.ts index 57349b430e..9d54b719cf 100644 --- a/lib/mock-instance/mock-instance.ts +++ b/lib/mock-instance/mock-instance.ts @@ -122,7 +122,7 @@ const mockInstanceMember = ( }; /** - * @see https://github.com/ike18t/ng-mocks#ngmocksstubmember + * @see https://ng-mocks.sudo.eu/api/ngMocks/stubMember */ export function MockInstance T[K]>( instance: Type | AbstractType, @@ -132,7 +132,7 @@ export function MockInstance void>( instance: Type | AbstractType, @@ -142,7 +142,7 @@ export function MockInstance( instance: Type | AbstractType, @@ -151,7 +151,7 @@ export function MockInstance( declaration: InjectionToken, @@ -159,7 +159,7 @@ export function MockInstance( ): void; /** - * @see https://github.com/ike18t/ng-mocks#mockinstance + * @see https://ng-mocks.sudo.eu/api/MockInstance */ export function MockInstance( declaration: InjectionToken, @@ -169,7 +169,7 @@ export function MockInstance( ): void; /** - * @see https://github.com/ike18t/ng-mocks#mockinstance + * @see https://ng-mocks.sudo.eu/api/MockInstance */ export function MockInstance( declaration: Type | AbstractType, @@ -177,7 +177,7 @@ export function MockInstance( ): void; /** - * @see https://github.com/ike18t/ng-mocks#mockinstance + * @see https://ng-mocks.sudo.eu/api/MockInstance */ export function MockInstance( declaration: Type | AbstractType, diff --git a/lib/mock-module/mock-module.ts b/lib/mock-module/mock-module.ts index a130aae883..3fe11ebde0 100644 --- a/lib/mock-module/mock-module.ts +++ b/lib/mock-module/mock-module.ts @@ -143,12 +143,12 @@ const generateReturn = ( : mockModule; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-modules + * @see https://ng-mocks.sudo.eu/api/MockModule */ export function MockModule(module: Type): Type; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-modules + * @see https://ng-mocks.sudo.eu/api/MockModule */ export function MockModule(module: NgModuleWithProviders): NgModuleWithProviders; diff --git a/lib/mock-pipe/mock-pipe.ts b/lib/mock-pipe/mock-pipe.ts index e500286bf7..4b6acb4079 100644 --- a/lib/mock-pipe/mock-pipe.ts +++ b/lib/mock-pipe/mock-pipe.ts @@ -13,7 +13,7 @@ import helperMockService from '../mock-service/helper.mock-service'; import { MockedPipe } from './types'; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-pipes + * @see https://ng-mocks.sudo.eu/api/MockPipe */ export function MockPipes(...pipes: Array>): Array> { return pipes.map(pipe => MockPipe(pipe, undefined)); @@ -37,7 +37,7 @@ const getMockClass = (pipe: Type, transform?: PipeTransform['transform']): }; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-pipes + * @see https://ng-mocks.sudo.eu/api/MockPipe */ export function MockPipe( pipe: Type, diff --git a/lib/mock-provider/mock-provider.ts b/lib/mock-provider/mock-provider.ts index d01517319d..e14a9bae46 100644 --- a/lib/mock-provider/mock-provider.ts +++ b/lib/mock-provider/mock-provider.ts @@ -12,17 +12,17 @@ export function MockProviders(...providers: Array | InjectionToken< } /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-providers + * @see https://ng-mocks.sudo.eu/api/MockProvider */ export function MockProvider(instance: AnyType, overrides?: Partial): FactoryProvider; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-providers + * @see https://ng-mocks.sudo.eu/api/MockProvider */ export function MockProvider(provider: InjectionToken | string, useValue?: Partial): FactoryProvider; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-providers + * @see https://ng-mocks.sudo.eu/api/MockProvider */ export function MockProvider(provider: string, useValue?: Partial): FactoryProvider; diff --git a/lib/mock-render/mock-render.ts b/lib/mock-render/mock-render.ts index c55c80f4a3..b0aa4dc6bb 100644 --- a/lib/mock-render/mock-render.ts +++ b/lib/mock-render/mock-render.ts @@ -140,7 +140,7 @@ const tryWhen = (flag: boolean, callback: () => void) => { }; /** - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender( template: InjectionToken, @@ -149,7 +149,7 @@ function MockRender( ): MockedComponentFixture; /** - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender( template: Type, @@ -158,7 +158,7 @@ function MockRender( ): MockedComponentFixture; /** - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender( template: Type, @@ -167,7 +167,7 @@ function MockRender( ): MockedComponentFixture; /** - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender>( template: Type, @@ -178,26 +178,26 @@ function MockRender(template: Type): MockedComponentFixture; /** * An empty string does not have point. * - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender(template: ''): ComponentFixture & { point: undefined }; /** * Without params we should not autocomplete any keys of any types. * - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender(template: string): MockedComponentFixture; /** - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender( template: string, @@ -206,7 +206,7 @@ function MockRender( ): MockedComponentFixture>; /** - * @see https://github.com/ike18t/ng-mocks#mockrender + * @see https://ng-mocks.sudo.eu/api/MockRender */ function MockRender = Record>( template: string, diff --git a/lib/mock-service/mock-service.ts b/lib/mock-service/mock-service.ts index 19eb6befa4..53ed9f3d3a 100644 --- a/lib/mock-service/mock-service.ts +++ b/lib/mock-service/mock-service.ts @@ -44,22 +44,22 @@ const mockVariable = (service: any, prefix: string, callback: typeof MockService }; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-services + * @see https://ng-mocks.sudo.eu/api/MockService */ export function MockService(service: boolean | number | string | null | undefined): undefined; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-services + * @see https://ng-mocks.sudo.eu/api/MockService */ export function MockService(service: AnyType, overrides?: Partial, mockNamePrefix?: string): T; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-services + * @see https://ng-mocks.sudo.eu/api/MockService */ export function MockService(service: AnyType, mockNamePrefix?: string): T; /** - * @see https://github.com/ike18t/ng-mocks#how-to-mock-services + * @see https://ng-mocks.sudo.eu/api/MockService */ export function MockService(service: object, mockNamePrefix?: string): T;