UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

31 lines (30 loc) 4.03 kB
import { TestingCore } from '../testing-core.abstract'; import { TestingDescribe } from '../testing-describe.class'; import { TestingExpectation } from '../testing-expectation.class'; import { TestingIt } from '../testing-it.class'; import { TestingItToBeInstanceOf } from '../it'; import { CounterConfig, ExpectType } from '../../type'; import { ExecutableTests } from '../../interface/executable-tests.interface'; export declare class TestingToBeInstanceOf<Descriptions extends string = string, Expectations extends string = string> extends TestingCore<Descriptions, Expectations> { protected toBeInstanceOf: TestingItToBeInstanceOf; constructor(allowDescribe?: boolean, allowIt?: boolean, executable?: ExecutableTests, counter?: CounterConfig, testingDescribe?: TestingDescribe, testingIt?: TestingIt, testingExpectation?: TestingExpectation); toBeInstanceOfArray<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfBoolean<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfDate<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfError<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfFunction<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfMap<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfNumber<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfObject<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfPromise<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfRangeError<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfReferenceError<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfRegExp<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfSet<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfStorage<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfString<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfSyntaxError<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfTypeError<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfURIError<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; toBeInstanceOfWeakSet<T>(actual: ExpectType<T>, expected?: jasmine.Expected<boolean>, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; }